-
-
Notifications
You must be signed in to change notification settings - Fork 250
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
feat: mark .git
as ignored, which hides it when using --git-ignore
#231
Conversation
Isn't Wouldn't you want to list every single file/folder in a directory that is included in the repo? Thoughts? |
Why? The
But in fact, Git ignores
Idk, it makes sense to me that you would like to see every file in your repository that you care about for development, and when you’re developing using Git, you don’t care about ignored files and the |
Yeah you are right, I definitely see your point. It just initially felt like a weird line because we are talking about the very thing that is itself doing the ignoring.. if that makes any sense. I think personally I don't mind seeing it, because it's just burned into me that I see that in the root of every repo. But I don't usually opt for the --git-ignore flag anyway. But yeah, 👍 makes sense to me now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Local manual testing and integration tests indicate this is working as expected and doesn't break anything.
Took me a few moment to see how this makes sense to do, but I see .git
is implicit.
Thanks for the PR, LGTM, and merging when CI passes.
Now that I think of it, I would have liked to add some documentation in the man page about this behavior >< |
It makes a whole lot of sense to consider the
.git
at the root of a Git repository as ignored, since it kind is in practice.But also, as ogham/exa#1214 shows, it’s useful to be able to hide
.git
when usingeza --tree --all --git-ignore
.I tested the code and confirmed it worked perfectly well in three situations:
../exa
on my computer)git init