summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorNanako Shiraishi <nanako3@lavabit.com>2009-02-24 09:59:15 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-02-25 07:53:38 (GMT)
commit36407548a2825462a91b456755412a65fd611fc0 (patch)
treee9932b7d92ae2d995636eb5cfebe528243cde6a2 /Documentation
parent3a4c1a5e212357c3df030b6713c75466694c2e77 (diff)
downloadgit-36407548a2825462a91b456755412a65fd611fc0.zip
git-36407548a2825462a91b456755412a65fd611fc0.tar.gz
git-36407548a2825462a91b456755412a65fd611fc0.tar.bz2
Give short-hands to --pretty=tformat:%formatstring
Allow --pretty="%h %s" (and --format="%h %s") as shorthand for an often used option --pretty=tformat:"%h %s". Signed-off-by: Nanako Shiraishi <nanako3@lavabit.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/pretty-formats.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/Documentation/pretty-formats.txt b/Documentation/pretty-formats.txt
index 159390c..5c6e678 100644
--- a/Documentation/pretty-formats.txt
+++ b/Documentation/pretty-formats.txt
@@ -152,3 +152,12 @@ $ git log -2 --pretty=tformat:%h 4da45bef \
4da45be
7134973
---------------------
++
+In addition, any unrecognized string that has a `%` in it is interpreted
+as if it has `tformat:` in front of it. For example, these two are
+equivalent:
++
+---------------------
+$ git log -2 --pretty=tformat:%h 4da45bef
+$ git log -2 --pretty=%h 4da45bef
+---------------------