Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] update git auto completion
- X-seq: zsh-workers 32069
- From: Hong Xu <hong@xxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH] update git auto completion
- Date: Fri, 29 Nov 2013 16:48:40 -0800
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Hi all,
A patch to update git auto completion is attached. This patch adds auto
completion for `git submodule update --remote`.
Best,
Hong
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index b011487..43a01d9 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -1643,6 +1643,7 @@ _git-submodule () {
'--rebase[rebase current branch onto commit recorded in superproject]' \
'--reference=[remote repository to clone]: :__git_any_repositories' \
'--recursive[traverse submodules recursively]' \
+ '--remote[use the status of the submodule''s remote-tracking branch]' \
'--force[discard local changes by checking out the current up-to-date version]' \
'--init[initialize uninitialized submodules]' \
'*: :__git_ignore_line_inside_arguments __git_submodules' && ret=0
Messages sorted by:
Reverse Date,
Date,
Thread,
Author