completion: warn people about duplicated function
[gitweb.git] / contrib / completion / git-completion.bash
index abf8215ddce18bf595879e4366a72a4eb8827ba6..efcd875f91a24389340e0620bc688c00661b6429 100644 (file)
@@ -36,6 +36,8 @@ esac
 # returns location of .git repo
 __gitdir ()
 {
+       # Note: this function is duplicated in git-prompt.sh
+       # When updating it, make sure you update the other one to match.
        if [ -z "${1-}" ]; then
                if [ -n "${__git_dir-}" ]; then
                        echo "$__git_dir"