summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4181c7e)
raw | patch | inline | side by side (parent: 4181c7e)
author | Lee Marlow <lee.marlow@gmail.com> | |
Tue, 5 Aug 2008 05:50:33 +0000 (23:50 -0600) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 6 Aug 2008 04:21:19 +0000 (21:21 -0700) |
Add completions for all long options specified in the docs
--quiet --bare --template= --shared
--shared={false|true|umask|group|all|world|everybody}
Signed-off-by: Lee Marlow <lee.marlow@gmail.com>
Acked-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
--quiet --bare --template= --shared
--shared={false|true|umask|group|all|world|everybody}
Signed-off-by: Lee Marlow <lee.marlow@gmail.com>
Acked-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash | patch | blob | history |
index 97ece7d8e5f6a2259a030cadae3ecec85fde0ec1..a6d8d0c03e0b2edd3151ecfa52ccb5d0e0f9b8a3 100755 (executable)
__gitcomp "$(__git_all_commands)"
}
+_git_init ()
+{
+ local cur="${COMP_WORDS[COMP_CWORD]}"
+ case "$cur" in
+ --shared=*)
+ __gitcomp "
+ false true umask group all world everybody
+ " "" "${cur##--shared=}"
+ return
+ ;;
+ --*)
+ __gitcomp "--quiet --bare --template= --shared --shared="
+ return
+ ;;
+ esac
+ COMPREPLY=()
+}
+
_git_ls_remote ()
{
__gitcomp "$(__git_remotes)"
gc) _git_gc ;;
grep) _git_grep ;;
help) _git_help ;;
+ init) _git_init ;;
log) _git_log ;;
ls-remote) _git_ls_remote ;;
ls-tree) _git_ls_tree ;;