summaryrefslogtreecommitdiffstats
path: root/git-show.html
diff options
context:
space:
mode:
authorJunio C Hamano <junio@hera.kernel.org>2008-06-13 10:04:01 +0000
committerJunio C Hamano <junio@hera.kernel.org>2008-06-13 10:04:01 +0000
commit6fb124cd538ba3d8d7c5da9bb979b3fd0e1b2925 (patch)
tree42399be6b1d4ba93c664dd7a38942975da9d06f7 /git-show.html
parentdc8f25ba925d69ae6cd9477948a4681a6b9ba881 (diff)
downloadgit-htmldocs-6fb124cd538ba3d8d7c5da9bb979b3fd0e1b2925.tar.gz
Autogenerated HTML docs for v1.5.6-rc2-45-gdc92c
Diffstat (limited to 'git-show.html')
-rw-r--r--git-show.html26
1 files changed, 25 insertions, 1 deletions
diff --git a/git-show.html b/git-show.html
index de346db37..d6c44a5ed 100644
--- a/git-show.html
+++ b/git-show.html
@@ -634,6 +634,30 @@ The title was &gt;&gt;t4119: test autocomputing -p&lt;n&gt; for traditional diff
</li>
</ul>
</li>
+<li>
+<p>
+<em>tformat:</em>
+</p>
+<p>The <em>tformat:</em> format works exactly like <em>format:</em>, except that it
+provides "terminator" semantics instead of "separator" semantics. In
+other words, each commit has the message terminator character (usually a
+newline) appended, rather than a separator 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:</p>
+<div class="listingblock">
+<div class="content">
+<pre><tt>$ 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</tt></pre>
+</div></div>
+</li>
</ul>
</div>
<h2>EXAMPLES</h2>
@@ -768,7 +792,7 @@ Johannes Schindelin &lt;Johannes.Schindelin@gmx.de&gt;.</p>
</div>
<div id="footer">
<div id="footer-text">
-Last updated 08-Jun-2008 01:34:14 UTC
+Last updated 13-Jun-2008 10:02:43 UTC
</div>
</div>
</body>