[PATCH v2 1/3] completion: complete "unstuck" `git push --recurse-submodules`
- From
John Keeping <john@keeping.me.uk>
- Date
- Jul 22, 2014, 18:24 UTC
- Message-ID
- <8303c95dd3e3ee8d77d4b994bb2d33b6a155a17f.1406053442.git.john@keeping.me.uk>
- In-Reply-To
- <e9576136c09dbf65c5e614f9272d2c2afa96f5b6.1405763157.git.john@keeping.me.uk>
Since the argument to `--recurse-submodules` is mandatory, it does not need to be stuck to the option with `=`.
Signed-off-by: John Keeping <john@keeping.me.uk>
---
Change since v1:
- Fix typo --recurse{_ => -}submodules
- Dropped previous patch 1/4 adding ";;" at the end of the "--repo" casecontrib/completion/git-completion.bash | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index 7a6e1d7..bed3665 100644 --- a/contrib/completion/git-completion.bash +++ b/contrib/completion/git-completion.bash @@ -1624,6 +1624,10 @@ __git_push_recurse_submodules="check on-demand" _git_push () { case "$prev" in + --recurse-submodules) + __gitcomp "$__git_push_recurse_submodules" + return + ;; --repo) __gitcomp_nl "$(__git_remotes)" return
-- 2.0.1.472.g6f92e5f.dirty