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
SRSverre Rabbelier <alturin@gmail.com>
Date
Jul 14, 2008, 11:17 UTC
Message-ID
<bd6139dc0807140417h7c9cd309g7cf911e78e7f78c5@mail.gmail.com>
In-Reply-To
<alpine.DEB.1.00.0807131929200.8950@racer>

On Sun, Jul 13, 2008 at 8:30 PM, Johannes Schindelin <Johannes.Schindelin@gmx.de> wrote:

Show 10 quoted lines
> On Sun, 13 Jul 2008, Sverre Rabbelier wrote:
>> On Sun, Jul 13, 2008 at 3:24 AM, Junio C Hamano <gitster@pobox.com> wrote:
>> > 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?

Hmm, no, this is just to get commits that touched a (set of) file(s). I use it to limit the commits I have to check when searching for reverts.

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

For the activity metric I think pretending that all files with the same name or renamed versions of those would make sense, which is what appending the new name would do. The downside is that all files with the same name get grouped together, I'm not sure which is the lesser of two evils. Leaving out information, or (possibly) including too much.

-- 
Cheers,

Sverre Rabbelier
Previous: Johannes SchindelinNext: Johannes Schindelin
Message 5 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.