Skip to content

Commit 08a9a6d

Browse files
phil-blaingitster
authored andcommitted
completion: complete --ita-invisible-in-index and --ita-visible-in-index
The options --ita-invisible-in-index and --ita-visible-in-index are listed in diff-options.txt and so are included in the documentation of commands which include this file (diff, diff-*, log, show, format-patch) but they only make sense for diffs relating to the index. As such, add them to '__git_diff_difftool_options' instead of '__git_diff_common_options' since it makes more sense to add them there. Signed-off-by: Philippe Blain <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 8885532 commit 08a9a6d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

contrib/completion/git-completion.bash

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1763,6 +1763,7 @@ __git_diff_common_options="--stat --numstat --shortstat --summary
17631763
# Options for diff/difftool
17641764
__git_diff_difftool_options="--cached --staged --pickaxe-all --pickaxe-regex
17651765
--base --ours --theirs --no-index --relative --merge-base
1766+
--ita-invisible-in-index --ita-visible-in-index
17661767
$__git_diff_common_options"
17671768

17681769
_git_diff ()

0 commit comments

Comments
 (0)