diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-03-17 14:24:08 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-03-17 14:24:08 -0700 |
commit | f1ba1c90e1704e937ff59ee510a8d46a5ab52a1a (patch) | |
tree | b793a66daa451a52f98f6b785ef3b4639f3184d9 /contrib | |
parent | 60dafdd37d7df358b6ff67b317dbe738b50ea6d6 (diff) | |
parent | 7d182f52f1a754bdccb2e7c7cea54f773f76bc5c (diff) | |
download | git-f1ba1c90e1704e937ff59ee510a8d46a5ab52a1a.tar.gz |
Merge branch 'maint'
* maint:
Documentation: receive.denyCurrentBranch defaults to 'refuse'
bash: complete *_HEAD refs if present
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/completion/git-completion.bash | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index fe93747c93..733ac39a32 100755 --- a/contrib/completion/git-completion.bash +++ b/contrib/completion/git-completion.bash @@ -250,7 +250,9 @@ __git_refs () refs="${cur%/*}" ;; *) - if [ -e "$dir/HEAD" ]; then echo HEAD; fi + for i in HEAD FETCH_HEAD ORIG_HEAD MERGE_HEAD; do + if [ -e "$dir/$i" ]; then echo $i; fi + done format="refname:short" refs="refs/tags refs/heads refs/remotes" ;; |