Merge branch 'nd/index-format-doc' into maint
[gitweb.git] / contrib / completion / git-completion.bash
index be800e09bdf0656951c415105e0d32ce0b0edf9e..cda095de6b73b36c389003ad8c2f78f98aef1ae7 100644 (file)
@@ -321,7 +321,7 @@ __git_refs ()
                                if [[ "$ref" == "$cur"* ]]; then
                                        echo "$ref"
                                fi
-                       done | uniq -u
+                       done | sort | uniq -u
                fi
                return
        fi
@@ -989,6 +989,8 @@ _git_clone ()
                        --upload-pack
                        --template=
                        --depth
+                       --single-branch
+                       --branch
                        "
                return
                ;;