get_patch_filename(): drop "just-numbers" hack
[gitweb.git] / contrib / completion / git-prompt.sh
index 8e2e9f30c326ad060e4fef515b6659a1b20a67d1..bf20491ec33e467f6b9591d94a2e27bc9e3d93e9 100644 (file)
 #
 # If you would like to see the difference between HEAD and its upstream,
 # set GIT_PS1_SHOWUPSTREAM="auto".  A "<" indicates you are behind, ">"
-# indicates you are ahead, and "<>" indicates you have diverged.  You
-# can further control behaviour by setting GIT_PS1_SHOWUPSTREAM to a
-# space-separated list of values:
+# indicates you are ahead, "<>" indicates you have diverged and "="
+# indicates that there is no difference. You can further control
+# behaviour by setting GIT_PS1_SHOWUPSTREAM to a space-separated list
+# of values:
 #
 #     verbose       show number of commits ahead/behind (+/-) upstream
 #     legacy        don't use the '--count' option available in recent
@@ -53,6 +54,8 @@
 # returns location of .git repo
 __gitdir ()
 {
+       # Note: this function is duplicated in git-completion.bash
+       # When updating it, make sure you update the other one to match.
        if [ -z "${1-}" ]; then
                if [ -n "${__git_dir-}" ]; then
                        echo "$__git_dir"