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 doesn't hide Git ignored files #485

Closed
kosciak9 opened this issue Mar 26, 2019 · 6 comments
Closed

--git-ignore doesn't hide Git ignored files #485

kosciak9 opened this issue Mar 26, 2019 · 6 comments

Comments

@kosciak9
Copy link

Arch Linux with Linux 5.0.4-zen1-1-zen #1 ZEN SMP PREEMPT Sat Mar 23 20:59:30 UTC 2019 x86_64 GNU/Linux

exa-git v.1142-1 and exa v0.8.0-3 - neither works

expected result: --git-ignore hides files from repository
currently: it doesn't :(

@alexilyaev
Copy link

Please add more information on your folder structure and contents of .gitignore.
For me --git-ignore does work but has some inconsistencies between how git interprets it and how exa does.

@kosciak9
Copy link
Author

Hey, I believe that was the most basic one, ignoring node_modules but I will check today.

@phanimahesh
Copy link

phanimahesh commented Apr 6, 2020

Example: An entry foo in .gitignore is interpreted as the file or folder foo at top level or in any subfolder, but exa only ignores the top level dir.

Also see #569

@ospalh
Copy link

ospalh commented Jan 9, 2021

I hav a rather long ~/.gitignore_global, that i use via ~/.gitconig

[core]
  excludesfile = /home/NN/.gitignore_global

That is used by git and possibly not by exa.

For example, i ignore *~ only in that file, and files like foo.xy~ show up when i do exa -l --git --git-ignore, with a correct -I git marking.

@ariasuni
Copy link
Collaborator

ariasuni commented Jan 9, 2021

This was fixed in #653 (I just tested your setup), there just hasn’t been a new release made since then.

@ariasuni ariasuni closed this as completed Jan 9, 2021
@ChristophP
Copy link

@ariasuni Thx , the fix is great. I compiled from source for now. Hopefully there'll be a release soon

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

No branches or pull requests

6 participants