git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Documentation for git-log --follow

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jul 13, 2007, 14:47 UTC
Message-ID
<Pine.LNX.4.64.0707131540490.14781@racer.site>
In-Reply-To
<20070712145230.GA21590@dervierte>
Hi,
On Thu, 12 Jul 2007, Steven Walter wrote:
> +--follow::
> +	Continue listing the history of a file beyond renames.
> +
Maybe say "Follow the history of a file beyond renames"?
Show 10 quoted lines
> @@ -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.
> +

This is not particularly clear IMHO. Probably it would be a good thing to contrast vs no-follow:

	The output of "git log builtin-rev-list.c" stops with commit 
	"v1.4.0-rc1~126", as if the file was created there.
	With "--follow", git will detect that this file was renamed 
	from "rev-list.c" and minimally modified in that commit.  After 
	this, it will continue with the log, using the file name 
	"rev-list.c".

Ciao, Dscho

Previous: Linus Torvalds
Message 3 of 3 in “Documentation for git-log --follow”
  1. Documentation for git-log --followSteven Walter, Jul 12, 2007
  2. Linus TorvaldsJul 12, 2007
  3. Johannes SchindelinJul 13, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.