]> git.ipfire.org Git - thirdparty/git.git/commitdiff
completion: complete REVERT_HEAD and BISECT_HEAD
authorPhilippe Blain <levraiphilippeblain@gmail.com>
Mon, 22 May 2023 19:28:58 +0000 (19:28 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 23 May 2023 08:21:47 +0000 (17:21 +0900)
The pseudorefs REVERT_HEAD and BISECT_HEAD are not suggested
by the __git_refs function. 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 dc95c34cc853557efd2a59a33825f834e8d934cf..bcda376735cf2575b830f135aa4119133bf646f8 100644 (file)
@@ -767,7 +767,7 @@ __git_refs ()
                        track=""
                        ;;
                *)
-                       for i in HEAD FETCH_HEAD ORIG_HEAD MERGE_HEAD REBASE_HEAD CHERRY_PICK_HEAD; do
+                       for i in HEAD FETCH_HEAD ORIG_HEAD MERGE_HEAD REBASE_HEAD CHERRY_PICK_HEAD REVERT_HEAD BISECT_HEAD; do
                                case "$i" in
                                $match*|$umatch*)
                                        if [ -e "$dir/$i" ]; then