jonas / tig

Text-mode interface for git
https://jonas.github.io/tig/
GNU General Public License v2.0
12.27k stars 605 forks source link

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

Open qleveque opened 8 months ago

qleveque commented 8 months ago

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 commented 8 months ago

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 commented 7 months ago

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