feature: Ignore untracked files in "unassigned" list
I have a few untracked files laying around, for "reason", and normally use git diff and git add -p to stage my changes, where these untracked files don't get in the way. But with GB I'm seeing a long list of files that hide the tracked file I made a change in.
Could we have a option (perhaps in the UI here, or app settings) to toggle this?
Thanks!
Thanks for bringing this up!
We already might have a solution for this, but it's… unconventional. Are you still with me :)?
If so, could you try to change your personal ~/.gitignore to contain the files, but prefixed with $<file>?
And then, finally, you can launch GitButler with GIX_PARSE_PRECIOUS=true and they should disappear as precious files, while Git will still not ignore them as it has no notion of precious files.
Nifty! Wasn't aware of that Git feature :)
I guess it would work, but would require me to explicitly specify those files in the ~/.gitignore, which is a bit cumbersome (they are typically just junk that I have laying around, test cases, things that may or may not be used at some point).
I took the opportunity to clean those up (remove/move them) instead :)
But let's keep this issue open. I still think a toggle for this would be nice, ie. to switch between git diff and git status semantics.
I agree, it sounds like it would be useful to not show untracked files.
As a side-effect, the gix status operation would be faster as it won't have to traverse the worktree anymore to find those untracked files.