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

[PATCH 1/2] git-format-patch: Include diff-generate-patch documentation

From
Bagas Sanjaya <bagasdotme@gmail.com>
Date
Mar 24, 2021, 12:30 UTC
Message-ID
<20210324123027.29460-2-bagasdotme@gmail.com>
In-Reply-To
<20210324123027.29460-1-bagasdotme@gmail.com>
diff-generate-patch explains format of generated patch for text files.
Signed-off-by: Bagas Sanjaya <bagasdotme@gmail.com>
---
 Documentation/git-format-patch.txt | 7 +++++++
 1 file changed, 7 insertions(+)
diff --git a/Documentation/git-format-patch.txt b/Documentation/git-format-patch.txt
index 3e49bf2210..247033f8fc 100644
--- a/Documentation/git-format-patch.txt
+++ b/Documentation/git-format-patch.txt
@@ -718,6 +718,13 @@ use it only when you know the recipient uses Git to apply your patch.
 $ git format-patch -3
 ------------
 
+GENERATED DIFF FORMAT
+---------------------
+git-format-patch emits diff in generated patches. For text files, the
+diff format is described as below:
+
+include::diff-generate-patch.txt[]
+
 SEE ALSO
 --------
 linkgit:git-am[1], linkgit:git-send-email[1]
-- 
2.25.1
Previous: Bagas SanjayaNext: Junio C Hamano
Message 2 of 7 in “Diff format documentation for git-format-patch”
  1. 0/2 Diff format documentation for git-format-patchBagas Sanjaya, Mar 24, 2021
  2. 1/2 git-format-patch: Include diff-generate-patch documentationBagas Sanjaya, Mar 24, 2021
  3. Junio C HamanoMar 24, 2021
  4. 2/2 git-format-patch: Document format for binary patchBagas Sanjaya, Mar 24, 2021
  5. Junio C HamanoMar 24, 2021
  6. Bagas SanjayaMar 25, 2021
  7. Junio C HamanoMar 25, 2021

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.