Pass command line args through to diff-files in status view#1155
Pass command line args through to diff-files in status view#1155koutcher merged 2 commits intojonas:masterfrom
Conversation
This makes it possible to use `tig --ignore-submodules` to speed up the status view for a repo with many submodules. Closes jonas#1152
|
Looks good. Adding it only for GIT_DIFF_UNSTAGED_FILES and not for GIT_DIFF_STAGED_FILES If the only changes in the worktree are unstaged submodules, |
|
@bentitmus can you test if there are more issues with submodules with this patch? |
dc161f4 to
812292b
Compare
|
Looks good, the overall change is now fairly small which is a good sign. Don't forget to squash the commits before merging |
|
Sorry about the delay - I was away. I've tested this and it seems to work as expected (the speed up is considerable (from around 12s to around 2s). Thanks! As you say, it doesn't show the submodule (staged or unstaged), but this is fine. Most likely I will deliberately stage it from the command line or run |
|
Thanks for the feedback. |
This makes it possible to use `tig --ignore-submodules` to speed up the status view for a repo with many submodules. Closes jonas#1152 Reported-by: Benjamin Titmus <ben.titmus@cantab.net> Reviewed-by: Johannes Altmanninger <aclopte@gmail.com>
This makes it possible to use
tig --ignore-submodulesto speed upthe status view for a repo with many submodules.
Closes #1152