git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
1dc26db
)
completion: use __gitcomp_builtin in _git_ls_tree
author
Nguyễn Thái Ngọc Duy
<redacted>
Sat, 24 Mar 2018 20:35:24 +0000
(21:35 +0100)
committer
Junio C Hamano
<redacted>
Sun, 25 Mar 2018 16:35:23 +0000
(09:35 -0700)
Signed-off-by: Nguyễn Thái Ngọc Duy <redacted>
Signed-off-by: Junio C Hamano <redacted>
contrib/completion/git-completion.bash
patch
|
blob
|
history
diff --git
a/contrib/completion/git-completion.bash
b/contrib/completion/git-completion.bash
index 0080932b2971d7151b052058bc204241781271c2..6f53afa5e3b5d69c8110dd5d2d85b3909d8fcd6a 100644
(file)
--- a/
contrib/completion/git-completion.bash
+++ b/
contrib/completion/git-completion.bash
@@
-1629,6
+1629,13
@@
_git_ls_remote ()
_git_ls_tree ()
{
+ case "$cur" in
+ --*)
+ __gitcomp_builtin ls-tree
+ return
+ ;;
+ esac
+
__git_complete_file
}
git clone https://git.99rst.org/PROJECT