-
Notifications
You must be signed in to change notification settings - Fork 622
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
Hiding refs by pattern (to reduce git-branchless spam)? #1160
Comments
The environment variable TIG_LS_REMOTE can be used to select the references that Tig will display. When using a command like TIG_LS_REMOTE='sh -c "a | b"' tig, we pass an argv-array with 3 elements to execvpe. The third argument is passed with quotes, which means that the shell tries to run a command that is literally called 'a | b'. Fix this by removing quotes. We already split arguments with a shell-like syntax, so this only improves compatibility. This makes it easier filter away unwanted refs (jonas#1160) without creating a script TIG_LS_REMOTE.
You can set I wonder if there is a good way to avoid creating such opaque references in the first place. |
Does |
Not yet. I guess we'd need to reimplement Git's |
The environment variable TIG_LS_REMOTE can be used to select the references that Tig will display. When using a command like TIG_LS_REMOTE='sh -c "a | b"' tig, we pass an argv-array with 3 elements to execvpe. The third argument is passed with quotes, which means that the shell tries to run a command that is literally called 'a | b'. Fix this by removing quotes. We already split arguments with a shell-like syntax, so this only improves compatibility. This makes it easier filter away unwanted refs (#1160) without creating a script TIG_LS_REMOTE.
We could also introduce a new reference category |
This makes it possible to filter refs created by tools such as git-branchless with `set reference-format = hide:other`. Closes jonas#1160
This makes it possible to filter refs created by tools such as git-branchless with `set reference-format = hide:other`. Closes jonas#1160
This makes it possible to filter refs created by tools such as git-branchless with `set reference-format = hide:other`. Closes jonas#1160
This makes it possible to filter refs created by tools such as git-branchless with `set reference-format = hide:other`. Closes #1160
Installing git-branchless has resulted in it labeling large numbers of commits with meaningless refs which clutter the tig view. Is it possible to hide certain refs from tig by a regex/glob pattern?
I looked at https://jonas.github.io/tig/doc/tigrc.5.html#_variables, and it seems the closest you can get is
hide:
, but you can't hide branches and unknown refs separately, nor can you hiderefs/stash
andrefs/branchless
separately if you want.The text was updated successfully, but these errors were encountered: