{"thread":{"id":"13906","subject":"[PATCH] Typo in RelNotes.","startedAt":"2008-06-12T02:38:38Z","lastAt":"2008-06-12T06:14:28Z","messageCount":5,"participants":["Mikael Magnusson","Tarmigan","Jeff King"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"79533","messageId":"alpine.LNX.1.00.0806120434290.5838@localhost","threadId":"13906","inReplyTo":null,"subject":"[PATCH] Typo in RelNotes.","fromName":"Mikael Magnusson","fromEmail":"mikachu@gmail.com","sentAt":"2008-06-12T02:38:38Z","receivedAt":"2008-06-12T02:38:38Z","isPatch":true,"sender":{"key":"mikachu@gmail.com","avatar":null},"body":"Signed-off-by: Mikael Magnusson <mikachu@gmail.com>\n\n---\n\nThis is the first patch I send for git so I hope i didn't do anything silly :).\n\n  Documentation/RelNotes-1.5.6.txt |    2 +-\n  1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/Documentation/RelNotes-1.5.6.txt b/Documentation/RelNotes-1.5.6.txt\nindex a79e4b9..ac4881e 100644\n--- a/Documentation/RelNotes-1.5.6.txt\n+++ b/Documentation/RelNotes-1.5.6.txt\n@@ -70,7 +70,7 @@ Updates since v1.5.5\n\n  * \"git init --bare\" is a synonym for \"git --bare init\" now.\n\n-* \"git gc --auto\" honors a new pre-aut-gc hook to temporarily disable it.\n+* \"git gc --auto\" honors a new pre-auto-gc hook to temporarily disable it.\n\n  * \"git log --pretty=tformat:<custom format>\" gives a LF after each entry,\n    instead of giving a LF between each pair of entries which is how\n-- \n1.5.5.GIT\n\n\n--\nMikael Magnusson\n"},{"id":"79536","messageId":"905315640806112059r713bf807l20a1bc1e14ce4e27@mail.gmail.com","threadId":"13906","inReplyTo":"alpine.LNX.1.00.0806120434290.5838@localhost","subject":"Re: [PATCH] Typo in RelNotes.","fromName":"Tarmigan","fromEmail":"tarmigan+git@gmail.com","sentAt":"2008-06-12T03:59:37Z","receivedAt":"2008-06-12T03:59:37Z","isPatch":true,"sender":{"key":"tarmigan+git@gmail.com","avatar":null},"body":"On Wed, Jun 11, 2008 at 7:38 PM, Mikael Magnusson <mikachu@gmail.com> wrote:\n>  * \"git init --bare\" is a synonym for \"git --bare init\" now.\n>\n> -* \"git gc --auto\" honors a new pre-aut-gc hook to temporarily disable it.\n> +* \"git gc --auto\" honors a new pre-auto-gc hook to temporarily disable it.\n>\n>  * \"git log --pretty=tformat:<custom format>\" gives a LF after each entry,\n>   instead of giving a LF between each pair of entries which is how\n\nAny interest in fixing the typo on the next line while you're at it?\n\n-Tarmigan\n"},{"id":"79540","messageId":"20080612045330.GB25992@sigill.intra.peff.net","threadId":"13906","inReplyTo":"905315640806112059r713bf807l20a1bc1e14ce4e27@mail.gmail.com","subject":"Re: [PATCH] Typo in RelNotes.","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2008-06-12T04:53:30Z","receivedAt":"2008-06-12T04:53:30Z","isPatch":true,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Wed, Jun 11, 2008 at 08:59:37PM -0700, Tarmigan wrote:\n\n> On Wed, Jun 11, 2008 at 7:38 PM, Mikael Magnusson <mikachu@gmail.com> wrote:\n> >  * \"git init --bare\" is a synonym for \"git --bare init\" now.\n> >\n> > -* \"git gc --auto\" honors a new pre-aut-gc hook to temporarily disable it.\n> > +* \"git gc --auto\" honors a new pre-auto-gc hook to temporarily disable it.\n> >\n> >  * \"git log --pretty=tformat:<custom format>\" gives a LF after each entry,\n> >   instead of giving a LF between each pair of entries which is how\n> \n> Any interest in fixing the typo on the next line while you're at it?\n\nMaybe I am blind, but I don't see a typo. Are you referring to tformat,\nwhich looks like a typo, but is actually correct?\n\n-Peff\n"},{"id":"79541","messageId":"905315640806112206g4df6ce11h2a98412223e13fdd@mail.gmail.com","threadId":"13906","inReplyTo":"20080612045330.GB25992@sigill.intra.peff.net","subject":"Re: [PATCH] Typo in RelNotes.","fromName":"Tarmigan","fromEmail":"tarmigan+git@gmail.com","sentAt":"2008-06-12T05:06:13Z","receivedAt":"2008-06-12T05:06:13Z","isPatch":true,"sender":{"key":"tarmigan+git@gmail.com","avatar":null},"body":"On Wed, Jun 11, 2008 at 9:53 PM, Jeff King <peff@peff.net> wrote:\n> On Wed, Jun 11, 2008 at 08:59:37PM -0700, Tarmigan wrote:\n>\n>> On Wed, Jun 11, 2008 at 7:38 PM, Mikael Magnusson <mikachu@gmail.com> wrote:\n>> >  * \"git init --bare\" is a synonym for \"git --bare init\" now.\n>> >\n>> > -* \"git gc --auto\" honors a new pre-aut-gc hook to temporarily disable it.\n>> > +* \"git gc --auto\" honors a new pre-auto-gc hook to temporarily disable it.\n>> >\n>> >  * \"git log --pretty=tformat:<custom format>\" gives a LF after each entry,\n>> >   instead of giving a LF between each pair of entries which is how\n>>\n>> Any interest in fixing the typo on the next line while you're at it?\n>\n> Maybe I am blind, but I don't see a typo. Are you referring to tformat,\n> which looks like a typo, but is actually correct?\n\nOops you're right.  That's what I was thinking of.  Junio's commit\nmessage explains it well.  Should something be added to the man page\nabout it?\n\n-Tarmigan\n"},{"id":"79560","messageId":"20080612061428.GA28696@sigill.intra.peff.net","threadId":"13906","inReplyTo":"905315640806112206g4df6ce11h2a98412223e13fdd@mail.gmail.com","subject":"Re: [PATCH] Typo in RelNotes.","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2008-06-12T06:14:28Z","receivedAt":"2008-06-12T06:14:28Z","isPatch":true,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Wed, Jun 11, 2008 at 10:06:13PM -0700, Tarmigan wrote:\n\n> > Maybe I am blind, but I don't see a typo. Are you referring to tformat,\n> > which looks like a typo, but is actually correct?\n> \n> Oops you're right.  That's what I was thinking of.  Junio's commit\n> message explains it well.  Should something be added to the man page\n> about it?\n\nHow about this? I worry that the perl in the example is unnecessarily\ncomplex, but I couldn't think of a simpler way to show \"in this one, the\ntrailing newline is missing\". So I am open to suggestions.\n\n-- >8 --\ndocument --pretty=tformat: option\n\nThis was introduced in 4da45bef, but never documented\nanywhere.\n---\n Documentation/pretty-formats.txt |   21 +++++++++++++++++++++\n 1 files changed, 21 insertions(+), 0 deletions(-)\n\ndiff --git a/Documentation/pretty-formats.txt b/Documentation/pretty-formats.txt\nindex e8bea3e..14a2665 100644\n--- a/Documentation/pretty-formats.txt\n+++ b/Documentation/pretty-formats.txt\n@@ -124,3 +124,24 @@ The placeholders are:\n - '%m': left, right or boundary mark\n - '%n': newline\n - '%x00': print a byte from a hex code\n+\n+* 'tformat:'\n++\n+The 'tformat:' format works exactly like 'format:', except that it\n+provides \"terminator\" semantics instead of \"separator\" semantics. In\n+other words, each commit has the message separator (usually a newline)\n+appended, rather than placed between entries. This means that the final\n+entry of a single-line format will be properly terminated with a new\n+line, just as the \"oneline\" format does. For example:\n++\n+---------------------\n+$ git log -2 --pretty=format:%h 4da45bef \\\n+  | perl -pe '$_ .= \" -- NO NEWLINE\\n\" unless /\\n/'\n+4da45be\n+7134973 -- NO NEWLINE\n+\n+$ git log -2 --pretty=tformat:%h 4da45bef \\\n+  | perl -pe '$_ .= \" -- NO NEWLINE\\n\" unless /\\n/'\n+4da45be\n+7134973\n+---------------------\n-- \n1.5.6.rc2.168.g23af0b.dirty\n"}]}