Skip to content

Commit

Permalink
Documentation for git-log --follow
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Steven Walter authored and Junio C Hamano committed Jul 12, 2007
1 parent 5a235b5 commit 4f50f6a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Documentation/git-log.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ include::pretty-options.txt[]
the specified paths; this means that "<paths>..." limits only
commits, and doesn't limit diff for those commits.

--follow::
Continue listing the history of a file beyond renames.

<paths>...::
Show only commits that affect the specified paths.

Expand Down Expand Up @@ -91,6 +94,12 @@ git log -r --name-status release..test::
in the "release" branch, along with the list of paths
each commit modifies.

git log --follow builtin-rev-list.c::

Shows the commits that changed builtin-rev-list.c, including
those commits that occurred before the file was given its
present name.

Discussion
----------

Expand Down

0 comments on commit 4f50f6a

Please sign in to comment.