]> git.ipfire.org Git - thirdparty/git.git/commitdiff
completion: complete --ita-invisible-in-index and --ita-visible-in-index
authorPhilippe Blain <levraiphilippeblain@gmail.com>
Mon, 26 Jun 2023 16:24:37 +0000 (16:24 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 26 Jun 2023 16:40:12 +0000 (09:40 -0700)
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 <levraiphilippeblain@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash

index e74636ebe8697cc8157da32d6a2ac03e02f252ee..7246ced14ad144174a1c4b0efc65a4eb01388fa0 100644 (file)
@@ -1763,6 +1763,7 @@ __git_diff_common_options="--stat --numstat --shortstat --summary
 # Options for diff/difftool
 __git_diff_difftool_options="--cached --staged --pickaxe-all --pickaxe-regex
                        --base --ours --theirs --no-index --relative --merge-base
+                       --ita-invisible-in-index --ita-visible-in-index
                        $__git_diff_common_options"
 
 _git_diff ()