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

[Feature Request] Add a way to overwrite default git options #1305

Open
qleveque opened this issue Nov 11, 2023 · 2 comments
Open

[Feature Request] Add a way to overwrite default git options #1305

qleveque opened this issue Nov 11, 2023 · 2 comments

Comments

@qleveque
Copy link

Some tig options exist to overwrite the underlying behaviour of git (e.g. diff-options).
However, there are default parameters which cannot be modified (in the case of diff-options, the parameter --patch-with-stat will always be passed.)

Because of that, some behaviours are unexpected and differ from git.
For example tig log -p . would display filenames and stat, and this unexpected behaviour cannot be overwritten.

This would be great to add a tig option so that no unrequested parameters are added.

@koutcher
Copy link
Collaborator

For most views options are here because Tig's shortcuts rely on them. tig log would be the exception and we could move --cc --stat to tigrc so it could be overwritten. Until then, you still have the option to run git log -p . | tig.

@qleveque
Copy link
Author

Indeed you're right, I tried to recompile tig without the forced parameter --patch-with-stat, and some links were broken, so it's not as simple as I thought!
Thanks for the workaround suggestion

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

2 participants