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

[PATCH 2/2] bash: add more 'git add' options

From
SZEDER Gábor <szeder@ira.uka.de>
Date
Jun 14, 2008, 09:48 UTC
Message-ID
<1213436881-2360-2-git-send-email-szeder@ira.uka.de>
In-Reply-To
<1213436881-2360-1-git-send-email-szeder@ira.uka.de>
Signed-off-by: SZEDER Gábor <szeder@ira.uka.de>
---
 contrib/completion/git-completion.bash |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 1698463..2141b6b 100755
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -500,7 +500,10 @@ _git_add ()
 	local cur="${COMP_WORDS[COMP_CWORD]}"
 	case "$cur" in
 	--*)
-		__gitcomp "--interactive --refresh"
+		__gitcomp "
+			--interactive --refresh --patch --update --dry-run
+			--ignore-errors
+			"
 		return
 	esac
 	COMPREPLY=()
-- 
1.5.6.rc2.55.g9b8c
Previous: SZEDER GáborNext: SZEDER Gábor
Message 2 of 5 in “git add: add long equivalents of '-u' and '-f' options”
  1. 1/2 git add: add long equivalents of '-u' and '-f' optionsSZEDER Gábor, Jun 14, 2008
  2. 2/2 bash: add more 'git add' optionsSZEDER Gábor, Jun 14, 2008
  3. SZEDER GáborJun 15, 2008
  4. Junio C HamanoJun 15, 2008
  5. SZEDER GáborJun 15, 2008

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.