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

Re: Git log follow question

From
Jeff King <peff@peff.net>
Date
May 25, 2010, 09:31 UTC
Message-ID
<20100525093140.GA32460@coredump.intra.peff.net>
In-Reply-To
<alpine.LFD.2.00.1005140730030.3711@i5.linux-foundation.org>
On Fri, May 14, 2010 at 07:50:26AM -0700, Linus Torvalds wrote:
Show 11 quoted lines
> I'm pretty sure I mentioned about this exact issue when I posted the 
> original follow patches, and it basically boils down to: "--follow" is a 
> total hack, and does _not_ use the regular commit filtering function, and 
> as a result, fancy things like "--parent" don't really work well with it.
>
> [...]
>
> And no, I'm unlikely to look at it. Sorry. I have used --follow 
> occasionally, but it's a hack to see "ok, there it got renamed". It would 
> be nice if "gitk --follow <pathname>" worked properly, but it's just not 
> something I care very much about.

Thanks for the input. I took a look at it myself and it is a bit more complex than just turning on pruning. I have a prototype --follow that handles arbitrary pathspecs instead of single files; instead of replacing the single-file pathspec, it just widens the pathspec as it traverses history. That eliminates some of the issues, but I am still getting some odd results from --parents.

So I am giving up for now, as it is not something I care that much about, either (though multiple-file --follow is). However, Bo Yang, one of the GSoC students, is planning on working on it as part of his line-level history browsing project. So we'll see what comes of that.

-Peff
Previous: Linus TorvaldsNext: Linus Torvalds
Message 7 of 12 in “Git log follow question”
  1. Albert KrawczykMay 14, 2010
  2. Bo YangMay 14, 2010
  3. Jeff KingMay 14, 2010
  4. Linus TorvaldsMay 14, 2010
  5. Martin LanghoffMay 14, 2010
  6. Linus TorvaldsMay 14, 2010
  7. Jeff KingMay 25, 2010
  8. Linus TorvaldsMay 25, 2010
  9. Jeff KingMay 26, 2010
  10. Linus TorvaldsMay 26, 2010
  11. Albert KrawczykMay 14, 2010
  12. Albert KrawczykMay 14, 2010

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.