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 <levraiphilippeblain@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Philippe Blain committed Jun 26, 2023 at 16:24 UTC ffcccc62b02ff41d5b436ea7cbd852bb2bd83bf8
1 file changed +2 -1
contrib/completion/git-completion.bash
+2 -1
@@ -1741,6 +1741,7 @@ __git_diff_common_options="--stat --numstat --shortstat --summary
1741 --color-moved-ws= --no-color-moved-ws
1742 --full-index --binary --abbrev --diff-filter=
1743 --find-copies --find-object --find-renames
1744 + --no-relative --relative
1745 --find-copies-harder --ignore-cr-at-eol
1746 --text --ignore-space-at-eol --ignore-space-change
1747 --ignore-all-space --ignore-blank-lines --exit-code
@@ -1762,7 +1763,7 @@ __git_diff_common_options="--stat --numstat --shortstat --summary
1763
1764 # Options for diff/difftool
1765 __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
1767 --ita-invisible-in-index --ita-visible-in-index
1768 $__git_diff_common_options"
1769