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

Re: [RFH] Finding all commits that touch the same files as a specific commit

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jul 13, 2008, 18:30 UTC
Message-ID
<alpine.DEB.1.00.0807131929200.8950@racer>
In-Reply-To
<bd6139dc0807130743y178a865amebcf130a68283854@mail.gmail.com>
Hi,
On Sun, 13 Jul 2008, Sverre Rabbelier wrote:
Show 16 quoted lines
> On Sun, Jul 13, 2008 at 3:24 AM, Junio C Hamano <gitster@pobox.com> wrote:
> 
> <explanation of the git log traversal machinery snipped>
> 
> > In order to follow renames reliably in a merge heavy history, you need to
> > keep track of the pathname the file you are interested in appears as _in
> > each commit_.  As you traverse down the history, you pass down the
> > pathname to the parent you visit, so while you are traversing from 'x' to
> > earlier 'x', you will keep following "git-gui/git-gui.sh", while you
> > traverse down to 'o', you will inspect "git-gui.sh".
> >
> > The data structure the revision traversal machinery uses does not support
> > this "path-per-commit" natively.
> 
> Would it be possible to go for a slightly less complicated approach
> and instead of passing replacing the tracked file, append it?

Maybe I miss something, but do you not have to keep track of the file names, in order to keep track of the proper statistics?

If that is the case, appending does not cut it.

Ciao, Dscho

Previous: Sverre RabbelierNext: Sverre Rabbelier
Message 4 of 7 in “[RFH] Finding all commits that touch the same files as a specific commit”
  1. Sverre RabbelierJul 12, 2008
  2. Junio C HamanoJul 13, 2008
  3. Sverre RabbelierJul 13, 2008
  4. Johannes SchindelinJul 13, 2008
  5. Sverre RabbelierJul 14, 2008
  6. Johannes SchindelinJul 14, 2008
  7. Sverre RabbelierJul 14, 2008

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.