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

[PATCH] completion: add --irreversible-delete for format-patch

From
EWEric Wong <normalperson@yhbt.net>
Date
Dec 21, 2014, 11:50 UTC
Message-ID
<20141221115007.GA23500@dcvr.yhbt.net>

Normally I would use "-D", but send-email (which normally passes options to format-patch) interprets the "-D" as a case-insensitive abbreviation for "--dry-run", preventing format-patch from seeing "-D".

Signed-off-by: Eric Wong <normalperson@yhbt.net>
---
 Case-insensitivity strikes again! :<
 What a wacky default for Getopt::Long...  And it's probably too late
 for us to disable case-insensitivity in CLI parsing for send-email.
 contrib/completion/git-completion.bash | 1 +
 1 file changed, 1 insertion(+)
diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash
index 2fece98..41d8ff8 100644
--- a/contrib/completion/git-completion.bash
+++ b/contrib/completion/git-completion.bash
@@ -1257,6 +1257,7 @@ __git_format_patch_options="
 	--not --all --cover-letter --no-prefix --src-prefix= --dst-prefix=
 	--inline --suffix= --ignore-if-in-upstream --subject-prefix=
 	--output-directory --reroll-count --to= --quiet --notes
+	--irreversible-delete
 "
 
 _git_format_patch ()
-- 
EW
Next: Junio C Hamano
Message 1 of 3 in “completion: add --irreversible-delete for format-patch”
  1. completion: add --irreversible-delete for format-patchEric Wong, Dec 21, 2014
  2. Junio C HamanoDec 22, 2014
  3. Eric WongDec 22, 2014

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.