path: root/Documentation/git-log.txt
diff options
authorMarco Costalba <>2007-07-20 18:15:13 (GMT)
committerJunio C Hamano <>2007-08-14 08:59:33 (GMT)
commit9fa3465d6be83c08ed24762c82eb33cb005729f3 (patch)
tree04e80313bc65786cd64042d4f25326fe444cf3bd /Documentation/git-log.txt
parentfb13227e089f22dc31a3b1624559153821056848 (diff)
Add --log-size to git log to print message size
With this option git-log prints log message size just before the corresponding message. Porcelain tools could use this to speedup parsing of git-log output. Note that size refers to log message only. If also patch content is shown its size is not included. In case it is not possible to know the size upfront size value is set to zero. Signed-off-by: Marco Costalba <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'Documentation/git-log.txt')
1 files changed, 7 insertions, 0 deletions
diff --git a/Documentation/git-log.txt b/Documentation/git-log.txt
index 63c1dbe..5a90f65 100644
--- a/Documentation/git-log.txt
+++ b/Documentation/git-log.txt
@@ -64,6 +64,13 @@ include::pretty-options.txt[]
Continue listing the history of a file beyond renames.
+ Before the log message print out its size in bytes. Intended
+ mainly for porcelain tools consumption. If git is unable to
+ produce a valid value size is set to zero.
+ Note that only message is considered, if also a diff is shown
+ its size is not included.
Show only commits that affect the specified paths.