]> git.ipfire.org Git - thirdparty/git.git/commitdiff
completion: add --anchored to diff's options
authorThomas Braun <thomas.braun@virtuell-zuhause.de>
Sun, 30 May 2021 11:31:35 +0000 (13:31 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 30 May 2021 21:21:14 +0000 (06:21 +0900)
This flag was introduced in 2477ab2e (diff: support anchoring line(s),
2017-11-27) but back then, the bash completion script did not learn
about the new flag. Add it.

Signed-off-by: Thomas Braun <thomas.braun@virtuell-zuhause.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash

index 3c5739b9059a20bd90bee8664ccdfd737a2787da..4dd268470a72c055e172d2e8426044a3a512647b 100644 (file)
@@ -1729,6 +1729,7 @@ __git_diff_common_options="--stat --numstat --shortstat --summary
                        --indent-heuristic --no-indent-heuristic
                        --textconv --no-textconv
                        --patch --no-patch
+                       --anchored=
 "
 
 __git_diff_difftool_options="--cached --staged --pickaxe-all --pickaxe-regex