Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'fc/simplify-complete-revlist-file'
author
Junio C Hamano
<gitster@pobox.com>
Mon, 14 May 2012 18:50:57 +0000
(11:50 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 14 May 2012 18:50:57 +0000
(11:50 -0700)
By Felipe Contreras
* fc/simplify-complete-revlist-file:
completion: simplify __git_complete_revlist_file
contrib/completion/git-completion.bash
patch
|
blob
|
history
raw
(from parent 1:
cc13431
)
diff --git
a/contrib/completion/git-completion.bash
b/contrib/completion/git-completion.bash
index 9f56ec7a6bde4b195b6e960e38e5403ce0b001b0..2f60825b21e33d8a00d1763d9bcad4dc6e6a60a7 100755
(executable)
--- a/
contrib/completion/git-completion.bash
+++ b/
contrib/completion/git-completion.bash
@@
-676,9
+676,7
@@
__git_complete_revlist_file ()
*) pfx="$ref:$pfx" ;;
esac
- local IFS=$'\n'
- COMPREPLY=($(compgen -P "$pfx" \
- -W "$(git --git-dir="$(__gitdir)" ls-tree "$ls" \
+ __gitcomp_nl "$(git --git-dir="$(__gitdir)" ls-tree "$ls" \
| sed '/^100... blob /{
s,^.* ,,
s,$, ,
@@
-692,7
+690,7
@@
__git_complete_revlist_file ()
s,$,/,
}
s/^.* //')" \
- -- "$cur_"))
+ "$pfx" "$cur_" ""
;;
*...*)
pfx="${cur_%...*}..."