diff options
author | Thomas Braun <thomas.braun@virtuell-zuhause.de> | 2017-10-24 15:19:31 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-10-25 15:12:46 +0900 |
commit | 6357d9d00405ae16d63610ec2d049e0ca7e391ea (patch) | |
tree | 23b66d3e2541e71075ce1aa21314d63d160095e7 /contrib/completion/git-completion.bash | |
parent | Merge tag 'l10n-2.15.0-rnd2' of git://github.com/git-l10n/git-po (diff) | |
download | tgif-6357d9d00405ae16d63610ec2d049e0ca7e391ea.tar.xz |
completion: add remaining flags to checkout
In the commits 1fc458d9 (builtin/checkout: add --recurse-submodules
switch, 2017-03-14), 08d595dc (checkout: add --ignore-skip-worktree-bits
in sparse checkout mode, 2013-04-13) and 32669671 (checkout: introduce
--detach synonym for "git checkout foo^{commit}", 2011-02-08) checkout
gained new flags but the completion was not updated, although these flags
are useful completions. Add them.
The flags --force and --ignore-other-worktrees are not added as they are
potentially dangerous.
The flags --progress and --no-progress are only useful for scripting and are
therefore also not included.
Signed-off-by: Thomas Braun <thomas.braun@virtuell-zuhause.de>
Reviewed-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/completion/git-completion.bash')
-rw-r--r-- | contrib/completion/git-completion.bash | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index 0e16f017a4..539d7f84f3 100644 --- a/contrib/completion/git-completion.bash +++ b/contrib/completion/git-completion.bash @@ -1250,7 +1250,8 @@ _git_checkout () --*) __gitcomp " --quiet --ours --theirs --track --no-track --merge - --conflict= --orphan --patch + --conflict= --orphan --patch --detach --ignore-skip-worktree-bits + --recurse-submodules --no-recurse-submodules " ;; *) |