git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH v1 1/1] completion: add remaining flags to checkout

From
Thomas Braun <thomas.braun@virtuell-zuhause.de>
Date
Oct 12, 2017, 12:20 UTC
Message-ID
<20171012122059.17242-1-thomas.braun@virtuell-zuhause.de>

In the commits 1d0fa898 (checkout: add --ignore-other-wortrees, 2015-01-03), 1fc458d9 (builtin/checkout: add --recurse-submodules switch, 2017-03-14), 870ebdb9 (checkout: add --progress option, 2015-11-01), 08d595dc (checkout: add --ignore-skip-worktree-bits in sparse checkout mode, 2013-04-13), 1d0fa898 (checkout: add --ignore-other-wortrees, 2015-01-03), 32669671 (checkout: introduce --detach synonym for "git checkout foo^{commit}", 2011-02-08) and db941099 (checkout -f: allow ignoring unmerged paths when checking out of the index, 2008-08-30) checkout gained new flags but the completion was not updated, although these flags are useful completions. Add them.

Signed-off-by: Thomas Braun <thomas.braun@virtuell-zuhause.de>
---
 contrib/completion/git-completion.bash | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index d934417475..393d4ae230 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -1250,7 +1250,9 @@ _git_checkout ()
 	--*)
 		__gitcomp "
 			--quiet --ours --theirs --track --no-track --merge
-			--conflict= --orphan --patch
+			--conflict= --orphan --patch --detach --progress --no-progress
+			--force --ignore-skip-worktree-bits --ignore-other-worktrees
+			--recurse-submodules --no-recurse-submodules
 			"
 		;;
 	*)
-- 
2.15.0.rc0.245.g6d586db062
Next: Johannes Sixt
Message 1 of 8 in “completion: add remaining flags to checkout”
  1. 1/1 completion: add remaining flags to checkoutThomas Braun, Oct 12, 2017
  2. Johannes SixtOct 12, 2017
  3. Johannes SixtOct 12, 2017
  4. Thomas BraunOct 24, 2017
  5. 1/1 completion: add remaining flags to checkoutThomas Braun, Oct 24, 2017
  6. Johannes SixtOct 24, 2017
  7. Junio C HamanoOct 25, 2017
  8. Junio C HamanoOct 25, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.