Skip to content

Commit ffcccc6

Browse files
phil-blaingitster
authored andcommitted
completion: complete --no-relative
Add --no-relative to __git_diff_common_options in the completion script, and move --relative from __git_diff_difftool_options to __git_diff_common_options since it applies to more than just diff and difftool. Signed-off-by: Philippe Blain <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 3a4d453 commit ffcccc6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

contrib/completion/git-completion.bash

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1741,6 +1741,7 @@ __git_diff_common_options="--stat --numstat --shortstat --summary
17411741
--color-moved-ws= --no-color-moved-ws
17421742
--full-index --binary --abbrev --diff-filter=
17431743
--find-copies --find-object --find-renames
1744+
--no-relative --relative
17441745
--find-copies-harder --ignore-cr-at-eol
17451746
--text --ignore-space-at-eol --ignore-space-change
17461747
--ignore-all-space --ignore-blank-lines --exit-code
@@ -1762,7 +1763,7 @@ __git_diff_common_options="--stat --numstat --shortstat --summary
17621763

17631764
# Options for diff/difftool
17641765
__git_diff_difftool_options="--cached --staged --pickaxe-all --pickaxe-regex
1765-
--base --ours --theirs --no-index --relative --merge-base
1766+
--base --ours --theirs --no-index --merge-base
17661767
--ita-invisible-in-index --ita-visible-in-index
17671768
$__git_diff_common_options"
17681769

0 commit comments

Comments
 (0)