Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --full-name to ls-files command #2

Open
mikewadsten opened this issue Mar 5, 2014 · 0 comments
Open

Add --full-name to ls-files command #2

mikewadsten opened this issue Mar 5, 2014 · 0 comments

Comments

@mikewadsten
Copy link
Owner

According to the git ls-files documentation,

--full-name
      When run from a subdirectory, the command usually outputs paths relative to the current directory. This option forces paths to be output relative to the project top directory.

We currently use expand or fnamemodify to generate the path to ignored fies using the relative paths returned from git ls-files with the current path prepended to it (e.g. /home/mike/git/vim-gitwildignore/plugin/../foo. By adding the --full-name argument to git ls-files we can save ourselves the trouble of doing that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant