]> git.ipfire.org Git - thirdparty/git.git/commitdiff
completion: complete AUTO_MERGE
authorPhilippe Blain <levraiphilippeblain@gmail.com>
Mon, 22 May 2023 19:29:01 +0000 (19:29 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 23 May 2023 08:21:47 +0000 (17:21 +0900)
The pseudoref AUTO_MERGE is documented since the previous commit. To
make it easier to use, let __git_refs in the Bash completion code
complete it.

Signed-off-by: Philippe Blain <levraiphilippeblain@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash

index bcda376735cf2575b830f135aa4119133bf646f8..945d2543b07c70f021038c2edbc8a852609ad01e 100644 (file)
@@ -767,7 +767,7 @@ __git_refs ()
                        track=""
                        ;;
                *)
-                       for i in HEAD FETCH_HEAD ORIG_HEAD MERGE_HEAD REBASE_HEAD CHERRY_PICK_HEAD REVERT_HEAD BISECT_HEAD; do
+                       for i in HEAD FETCH_HEAD ORIG_HEAD MERGE_HEAD REBASE_HEAD CHERRY_PICK_HEAD REVERT_HEAD BISECT_HEAD AUTO_MERGE; do
                                case "$i" in
                                $match*|$umatch*)
                                        if [ -e "$dir/$i" ]; then