Michael J Gruber <git@xxxxxxxxxxxxxxxxxxxx> writes: > Junio C Hamano venit, vidit, dixit 13.11.2012 19:09: >> Junio C Hamano <gitster@xxxxxxxxx> writes: >> >>> ... and it is broken X-<. >>> >>> The blank line should be added before the diffstat, not after the >>> notes message (t3307 shows a case where we give notes without >>> diffstat, and we shouldn't be adding an extra blank line in that >>> case. >> >> Second try. >> >> -- >8 -- >> Subject: format-patch: add a blank line between notes and diffstat >> >> The last line of the note text comes immediately before the diffstat >> block, making the latter unnecessarily harder to view. >> >> Signed-off-by: Junio C Hamano <gitster@xxxxxxxxx> >> --- >> >> log-tree.c | 31 +++++++++++++++++++++---------- >> 1 file changed, 21 insertions(+), 10 deletions(-) > > Thanks, that patch works. I'm curious, though, where the empty line > between the --- and your diffstat comes from. The message you are responding to is *not* an output from format-patch but was written in my MUA. The way I work when I show "this should work" patch is to: (1) Think, edit in my working tree, compile, eyeball "git diff HEAD", think again, and test; (2) Hit "Reply All" to the message I am going to give "this should work" response to, and start composing the response; (3) Run "git diff --stat -p HEAD" to have its output appended at the end of the message I started to compose in the previous step; (4) Write everything that should come before the output I appended in the previous step, i.e. "-- >8 --", in-body "Subject:", log, sign-off, and three-dash lines; (5) Send it out; and (6) Run "git reset --hard" and move on. The blank line was added in step (4), not step (3), which does not even have any commit log message, as the patch does not come from any existing commit. Later I may pick it up and apply to a topic branch just like I do for patches from other people and that is the point when such a patch becomes a commit for the first time. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html