Skip to contentSkip to conversation

Typo in RelNotes.

PATCH In review Mikael Magnusson 3 participants 5 messages Jun 15, 2016 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Typo in RelNotes.

---

This is the first patch I send for git so I hope i didn't do anything silly :).

 Documentation/RelNotes-1.5.6.txt |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Documentation/RelNotes-1.5.6.txt +1 -1
index a79e4b9..ac4881e 100644
@@ -70,7 +70,7 @@ Updates since v1.5.5
 
 * "git init --bare" is a synonym for "git --bare init" now.
 
-* "git gc --auto" honors a new pre-aut-gc hook to temporarily disable it.
+* "git gc --auto" honors a new pre-auto-gc hook to temporarily disable it.
 
 * "git log --pretty=tformat:<custom format>" gives a LF after each entry,
   instead of giving a LF between each pair of entries which is how
Signature · 5 lines
1.5.5.GIT


--
Mikael Magnusson
#1 lore raw

Documentation/RelNotes-1.5.6.txt Updates since v1.5.5 · line 76

Quoted 7 lines · Mikael Magnusson

* "git init --bare" is a synonym for "git --bare init" now.

Documentation/RelNotes-1.5.6.txt +1 -1
-* "git gc --auto" honors a new pre-aut-gc hook to temporarily disable it.
+* "git gc --auto" honors a new pre-auto-gc hook to temporarily disable it.
 
 * "git log --pretty=tformat:<custom format>" gives a LF after each entry,
  instead of giving a LF between each pair of entries which is how

Any interest in fixing the typo on the next line while you're at it?

-Tarmigan

#2 lore raw
Quoted 10 lines · Tarmigan

Documentation/RelNotes-1.5.6.txt Updates since v1.5.5 · line 76

Quoted 7 lines · Mikael Magnusson

* "git init --bare" is a synonym for "git --bare init" now.

Documentation/RelNotes-1.5.6.txt +1 -1
-* "git gc --auto" honors a new pre-aut-gc hook to temporarily disable it.
+* "git gc --auto" honors a new pre-auto-gc hook to temporarily disable it.
 
 * "git log --pretty=tformat:<custom format>" gives a LF after each entry,
  instead of giving a LF between each pair of entries which is how

Any interest in fixing the typo on the next line while you're at it?

Maybe I am blind, but I don't see a typo. Are you referring to tformat, which looks like a typo, but is actually correct?

-Peff

#3 lore raw
Quoted 8 lines · Jeff King
Quoted 6 lines · Tarmigan
Quoted 5 lines · Mikael Magnusson

* "git init --bare" is a synonym for "git --bare init" now.

Documentation/RelNotes-1.5.6.txt +1 -1
-* "git gc --auto" honors a new pre-aut-gc hook to temporarily disable it.
+* "git gc --auto" honors a new pre-auto-gc hook to temporarily disable it.
Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

* "git log --pretty=tformat:<custom format>" gives a LF after each entry, instead of giving a LF between each pair of entries which is how

Any interest in fixing the typo on the next line while you're at it?

Maybe I am blind, but I don't see a typo. Are you referring to tformat, which looks like a typo, but is actually correct?

Oops you're right. That's what I was thinking of. Junio's commit message explains it well. Should something be added to the man page about it?

-Tarmigan

#4 lore raw
Quoted 6 lines · Tarmigan
Quoted 2 lines

Maybe I am blind, but I don't see a typo. Are you referring to tformat, which looks like a typo, but is actually correct?

Oops you're right. That's what I was thinking of. Junio's commit message explains it well. Should something be added to the man page about it?

How about this? I worry that the perl in the example is unnecessarily complex, but I couldn't think of a simpler way to show "in this one, the trailing newline is missing". So I am open to suggestions.

-- >8 --
document --pretty=tformat: option

This was introduced in 4da45bef, but never documented anywhere.

---
 Documentation/pretty-formats.txt |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)
Documentation/pretty-formats.txt +21 -0
index e8bea3e..14a2665 100644
@@ -124,3 +124,24 @@ The placeholders are:
 - '%m': left, right or boundary mark
 - '%n': newline
 - '%x00': print a byte from a hex code
+
+* 'tformat:'
++
+The 'tformat:' format works exactly like 'format:', except that it
+provides "terminator" semantics instead of "separator" semantics. In
+other words, each commit has the message separator (usually a newline)
+appended, rather than placed between entries. This means that the final
+entry of a single-line format will be properly terminated with a new
+line, just as the "oneline" format does. For example:
++
+---------------------
+$ git log -2 --pretty=format:%h 4da45bef \
+  | perl -pe '$_ .= " -- NO NEWLINE\n" unless /\n/'
+4da45be
+7134973 -- NO NEWLINE
+
+$ git log -2 --pretty=tformat:%h 4da45bef \
+  | perl -pe '$_ .= " -- NO NEWLINE\n" unless /\n/'
+4da45be
+7134973
+---------------------
Signature · 1 line
1.5.6.rc2.168.g23af0b.dirty