zsh-workers
 help / color / mirror / code / Atom feed
* [PATCH] update git auto completion
@ 2013-11-30  0:48 Hong Xu
  0 siblings, 0 replies; only message in thread
From: Hong Xu @ 2013-11-30  0:48 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 142 bytes --]

Hi all,

A patch to update git auto completion is attached. This patch adds auto 
completion for `git submodule update --remote`.

Best,
Hong

[-- Attachment #2: git_comp.patch --]
[-- Type: text/plain, Size: 767 bytes --]

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-11-30  0:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-30  0:48 [PATCH] update git auto completion Hong Xu

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).