@@ -232,6 +232,64 @@ attachments, and sign off patches with configuration variables.
232232------------
233233
234234
235+ DISCUSSION
236+ ----------
237+
238+ The patch produced by 'git format-patch' is in UNIX mailbox format,
239+ with a fixed "magic" time stamp to indicate that the file is output
240+ from format-patch rather than a real mailbox, like so:
241+
242+ ------------
243+ From 8f72bad1baf19a53459661343e21d6491c3908d3 Mon Sep 17 00:00:00 2001
244+ From: Tony Luck <
[email protected] >
245+ Date: Tue, 13 Jul 2010 11:42:54 -0700
246+ Subject: [PATCH] =?UTF-8?q?[IA64]=20Put=20ia64=20config=20files=20on=20the=20?=
247+ =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig=20diet?=
248+ MIME-Version: 1.0
249+ Content-Type: text/plain; charset=UTF-8
250+ Content-Transfer-Encoding: 8bit
251+
252+ arch/arm config files were slimmed down using a python script
253+ (See commit c2330e286f68f1c408b4aa6515ba49d57f05beae comment)
254+
255+ Do the same for ia64 so we can have sleek & trim looking
256+ ...
257+ ------------
258+
259+ Typically it will be placed in a MUA's drafts folder, edited to add
260+ timely commentary that should not go in the changelog after the three
261+ dashes, and then sent as a message whose body, in our example, starts
262+ with "arch/arm config files were...". On the receiving end, readers
263+ can save interesting patches in a UNIX mailbox and apply them with
264+ linkgit:git-am[1].
265+
266+ When a patch is part of an ongoing discussion, the patch generated by
267+ 'git format-patch' can be tweaked to take advantage of the 'git am
268+ --scissors' feature. After your response to the discussion comes a
269+ line that consists solely of "`-- >8 --`" (scissors and perforation),
270+ followed by the patch with unnecessary header fields removed:
271+
272+ ------------
273+ ...
274+ > So we should do such-and-such.
275+
276+ Makes sense to me. How about this patch?
277+
278+ -- >8 --
279+ Subject: [IA64] Put ia64 config files on the Uwe Kleine-König diet
280+
281+ arch/arm config files were slimmed down using a python script
282+ ...
283+ ------------
284+
285+ When sending a patch this way, most often you are sending your own
286+ patch, so in addition to the "`From $SHA1 $magic_timestamp`" marker you
287+ should omit `From:` and `Date:` lines from the patch file. The patch
288+ title is likely to be different from the subject of the discussion the
289+ patch is in response to, so it is likely that you would want to keep
290+ the Subject: line, like the example above.
291+
292+
235293EXAMPLES
236294--------
237295
0 commit comments