blame: document --contents option
Signed-off-by: Junio C Hamano <junkio@cox.net>
Junio C Hamano committed
Feb 5, 2007 at 15:04 UTC
06e75a72372d0466e110002a7504fefebe0e9c52
2 files changed
+9
-2
Documentation/git-blame.txt
+8
-1
@@ -9,7 +9,7 @@ SYNOPSIS
9
--------
10
[verse]
11
'git-blame' [-c] [-l] [-t] [-f] [-n] [-p] [--incremental] [-L n,m] [-S <revs-file>]
12
- [-M] [-C] [-C] [--since=<date>] [<rev>] [--] <file>
12
+ [-M] [-C] [-C] [--since=<date>] [<rev> | --contents <file>] [--] <file>
13
14
DESCRIPTION
15
-----------
@@ -67,6 +67,13 @@ OPTIONS
67
Show the result incrementally in a format designed for
68
machine consumption.
69
70
+--contents <file>::
71
+ When <rev> is not specified, the command annotates the
72
+ changes starting backwards from the working tree copy.
73
+ This flag makes the command pretend as if the working
74
+ tree copy has the contents of he named file (specify
75
+ `-` to make the command read from the standard input).
76
+
77
-M::
78
Detect moving lines in the file as well. When a commit
79
moves a block of lines in a file (e.g. the original file
builtin-blame.c
+1
-1
@@ -18,7 +18,7 @@
18
#include "cache-tree.h"
19
20
static char blame_usage[] =
21
-"git-blame [-c] [-l] [-t] [-f] [-n] [-p] [-L n,m] [-S <revs-file>] [-M] [-C] [-C] [--contents <filename>] [commit] [--] file\n"
21
+"git-blame [-c] [-l] [-t] [-f] [-n] [-p] [-L n,m] [-S <revs-file>] [-M] [-C] [-C] [--contents <filename>] [--incremental] [commit] [--] file\n"
22
" -c, --compatibility Use the same output mode as git-annotate (Default: off)\n"
23
" -b Show blank SHA-1 for boundary commits (Default: off)\n"
24
" -l, --long Show long commit SHA1 (Default: off)\n"