summaryrefslogtreecommitdiffstats
path: root/git-blame.txt
diff options
context:
space:
mode:
authorJunio C Hamano <junio@hera.kernel.org>2006-10-25 22:55:31 +0000
committerJunio C Hamano <junio@hera.kernel.org>2006-10-25 22:55:31 +0000
commitff4b4317784217ee2620caf2cd06b3d4b6b00a9a (patch)
treefe258b15e72bbf6e1a04624ab94052e6f39c00c0 /git-blame.txt
parent249572f7c8a246cc1bb6c31a30d599f85bb10cb9 (diff)
downloadgit-htmldocs-ff4b4317784217ee2620caf2cd06b3d4b6b00a9a.tar.gz
Autogenerated HTML docs for v1.4.3.3-geb15
Diffstat (limited to 'git-blame.txt')
-rw-r--r--git-blame.txt39
1 files changed, 38 insertions, 1 deletions
diff --git a/git-blame.txt b/git-blame.txt
index e1f89444a..9891c1d37 100644
--- a/git-blame.txt
+++ b/git-blame.txt
@@ -7,7 +7,7 @@ git-blame - Show what revision and author last modified each line of a file
SYNOPSIS
--------
-'git-blame' [-c] [-l] [-t] [-S <revs-file>] [--] <file> [<rev>]
+'git-blame' [-c] [-l] [-t] [-f] [-n] [-p] [-S <revs-file>] [--] <file> [<rev>]
DESCRIPTION
-----------
@@ -45,10 +45,47 @@ OPTIONS
-S, --rev-file <revs-file>::
Use revs from revs-file instead of calling gitlink:git-rev-list[1].
+-f, --show-name::
+ Show filename in the original commit. By default
+ filename is shown if there is any line that came from a
+ file with different name, due to rename detection.
+
+-n, --show-number::
+ Show line number in the original commit (Default: off).
+
+-p, --porcelain::
+ Show in a format designed for machine consumption.
+
-h, --help::
Show help message.
+THE PORCELAIN FORMAT
+--------------------
+
+In this format, each line is output after a header; the
+header at the minumum has the first line which has:
+
+- 40-byte SHA-1 of the commit the line is attributed to;
+- the line number of the line in the original file;
+- the line number of the line in the final file;
+- on a line that starts a group of line from a different
+ commit than the previous one, the number of lines in this
+ group. On subsequent lines this field is absent.
+
+This header line is followed by the following information
+at least once for each commit:
+
+- author name ("author"), email ("author-mail"), time
+ ("author-time"), and timezone ("author-tz"); similarly
+ for committer.
+- filename in the commit the line is attributed to.
+- the first line of the commit log message ("summary").
+
+The contents of the actual line is output after the above
+header, prefixed by a TAB. This is to allow adding more
+header elements later.
+
SEE ALSO
--------
gitlink:git-annotate[1]