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

[PATCH v3 1/2] git-format-patch.txt: document --no-notes option

From
Denton Liu <liu.denton@gmail.com>
Date
May 10, 2019, 18:37 UTC
Message-ID
<4c3535f25bdffc8d94617c74f7c078cce59a044f.1557513353.git.liu.denton@gmail.com>
In-Reply-To
<cover.1557513353.git.liu.denton@gmail.com>

Internally, git-format-patch uses the `handle_revision_opt` parser. The parser handles the `--no-notes` option to negate an earlier `--notes` option, but it isn't documented. Document this option so that users are aware of it.

Signed-off-by: Denton Liu <liu.denton@gmail.com>
---
 Documentation/git-format-patch.txt | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/Documentation/git-format-patch.txt b/Documentation/git-format-patch.txt
index 1af85d404f..2c3971390e 100644
--- a/Documentation/git-format-patch.txt
+++ b/Documentation/git-format-patch.txt
@@ -22,7 +22,8 @@ SYNOPSIS
 		   [--rfc] [--subject-prefix=Subject-Prefix]
 		   [(--reroll-count|-v) <n>]
 		   [--to=<email>] [--cc=<email>]
-		   [--[no-]cover-letter] [--quiet] [--notes[=<ref>]]
+		   [--[no-]cover-letter] [--quiet]
+		   [--no-notes | --notes[=<ref>]]
 		   [--interdiff=<previous>]
 		   [--range-diff=<previous> [--creation-factor=<percent>]]
 		   [--progress]
@@ -263,6 +264,7 @@ material (this may change in the future).
 	for details.
 
 --notes[=<ref>]::
+--no-notes::
 	Append the notes (see linkgit:git-notes[1]) for the commit
 	after the three-dash line.
 +
-- 
2.21.0.1049.geb646f7864
Previous: Denton LiuNext: Denton Liu
Message 12 of 15 in “format-patch: teach format.notes config option”
  1. 0/2 format-patch: teach format.notes config optionDenton Liu, Apr 27, 2019
  2. 1/2 git-format-patch.txt: document --no-notes optionDenton Liu, Apr 27, 2019
  3. 2/2 format-patch: teach format.notes config optionDenton Liu, Apr 27, 2019
  4. Junio C HamanoMay 7, 2019
  5. 0/2 format-patch: teach format.notes config optionDenton Liu, May 8, 2019
  6. 1/2 git-format-patch.txt: document --no-notes optionDenton Liu, May 8, 2019
  7. 2/2 format-patch: teach format.notes config optionDenton Liu, May 8, 2019
  8. Beat BolliMay 8, 2019
  9. Denton LiuMay 8, 2019
  10. Beat BolliMay 8, 2019
  11. 0/2 format-patch: teach format.notes config optionDenton Liu, May 10, 2019
  12. 1/2 git-format-patch.txt: document --no-notes optionDenton Liu, May 10, 2019
  13. 2/2 format-patch: teach format.notes config optionDenton Liu, May 10, 2019
  14. Junio C HamanoMay 13, 2019
  15. Denton LiuMay 14, 2019

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.