Skip to contentSkip to conversation

Documentation: explain "--pretty"

PATCH New Michael 1 participant 1 message Jun 15, 2016 Documentation

lore
Share & tools
lore

Michael

author
#0 lore raw

PATCH 1/1 Documentation: explain "--pretty"

---
 Documentation/git-diff-tree.txt   |    4 ++--
 Documentation/git-log.txt         |    2 ++
 Documentation/git-rev-list.txt    |    4 +++-
 Documentation/git-show.txt        |    2 +-
 Documentation/git-whatchanged.txt |    2 +-
 5 files changed, 9 insertions(+), 5 deletions(-)
Documentation/git-diff-tree.txt +2 -2
index f7e8ff2..11d4f48 100644
@@ -73,9 +73,9 @@ separated with a single space are given.
 	This flag causes "git-diff-tree --stdin" to also show
 	the commit message before the differences.
 
---pretty[=(raw|medium|short)]::
+--pretty[=(raw|medium|short|full|oneline)]::
 	This is used to control "pretty printing" format of the
-	commit message.  Without "=<style>", it defaults to
+	commit message.  Without "=<format>", it defaults to
 	medium.
 
 --no-commit-id::
Documentation/git-log.txt +2 -0
index c9ffff7..cd46580 100644
@@ -26,6 +26,8 @@ OPTIONS
 -------
 --pretty=<format>::
 	Controls the way the commit log is formatted.
+	<format> can be one of 'raw', 'medium', 'short', 'full',
+	and 'oneline'.  Without "=<format>", it defaults to medium.
 
 --max-count=<n>::
 	Limits the number of commits to show.
Documentation/git-rev-list.txt +3 -1
index f60eacd..761891e 100644
@@ -49,8 +49,10 @@ between the two operands.  The following
 
 OPTIONS
 -------
---pretty::
+--pretty=<format>::
 	Print the contents of the commit changesets in human-readable form.
+	<format> can be one of 'raw', 'medium', 'short', 'full',
+	and 'oneline'.  Without "=<format>", it defaults to medium.
 
 --header::
 	Print the contents of the commit in raw-format; each
Documentation/git-show.txt +1 -1
index 2b4df3f..58c64ff 100644
@@ -29,7 +29,7 @@ OPTIONS
 --pretty=<format>::
 	Controls the output format for the commit logs.
 	<format> can be one of 'raw', 'medium', 'short', 'full',
-	and 'oneline'.
+	and 'oneline'.  Without "=<format>", it defaults to medium.
 
 Author
 ------
(quoted diff) +0 -0

b/Documentation/git-whatchanged.txt
index e8f21d0..4d7d45f 100644

Documentation/git-whatchanged.txt +1 -1
@@ -41,7 +41,7 @@ OPTIONS
 --pretty=<format>::
 	Controls the output format for the commit logs.
 	<format> can be one of 'raw', 'medium', 'short', 'full',
-	and 'oneline'.
+	and 'oneline'.  Without "=<format>", it defaults to medium.
 
 -m::
 	By default, differences for merge commits are not shown.
Signature · 1 line
1.4.2.rc3