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

--git-ignore parses paths beginning with / incorrectly #636

Closed
fofoni opened this issue Feb 19, 2020 · 1 comment · Fixed by #653 or lespea/exa#6
Closed

--git-ignore parses paths beginning with / incorrectly #636

fofoni opened this issue Feb 19, 2020 · 1 comment · Fixed by #653 or lespea/exa#6

Comments

@fofoni
Copy link

fofoni commented Feb 19, 2020

If . is the root of a Git repository, and I want to ignore ./file.txt but not ./dir/file.txt, I can add the line /file.txt to .gitignore. Git supports this, but exa does not.

@whitelynx
Copy link

whitelynx commented Feb 26, 2020

I'm also running into this issue. In one particular project I work on, .gitignore has the line:

/node_modules

which doesn't work (though it does work as expected in git), and therefore if I run exa --git-ignore --tree, it pegs one CPU core and doesn't finish. (I've let it run for more than 5 minutes this way before killing it)

It works as expected if I instead run exa --git-ignore --tree -I node_modules.

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