Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[PATCH] update git auto completion



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