Documentation for git-log --follow
After vainly searching the Documentation for how to follow renames, I finally broke down and grepped the source. It would appear that Linus didn't add write and docs for this feature when he wrote it. The following patch rectifies that, hopefully sparing future users from resorting to the source code. Signed-off-by: Steven Walter <stevenrwalter@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Steven Walter committed
Jul 12, 2007 at 10:52 UTC
4f50f6a966dc9a1ff7d11b2ca5eb116fa9dd139a
1 file changed
+9
Documentation/git-log.txt
+9
@@ -61,6 +61,9 @@ include::pretty-options.txt[]
61
the specified paths; this means that "<paths>..." limits only
62
commits, and doesn't limit diff for those commits.
63
64
+--follow::
65
+ Continue listing the history of a file beyond renames.
66
+
67
<paths>...::
68
Show only commits that affect the specified paths.
69
@@ -91,6 +94,12 @@ git log -r --name-status release..test::
94
in the "release" branch, along with the list of paths
95
each commit modifies.
96
97
+git log --follow builtin-rev-list.c::
98
+
99
+ Shows the commits that changed builtin-rev-list.c, including
100
+ those commits that occurred before the file was given its
101
+ present name.
102
+
103
Discussion
104
----------
105