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

Re: feature request: .blameignore

From
BRBarret Rhoden <brho@google.com>
Date
Apr 16, 2019, 14:52 UTC
Message-ID
<7cb3e28d-2f4a-9fa8-d3c5-3b9184e53149@google.com>
In-Reply-To
<5df051ce-007c-cc12-6f02-345b33480c0a@nerdocs.at>
Hi -
On 4/15/19 5:56 PM, Christian González wrote:
Show 16 quoted lines
> Am 15.04.19 um 23:15 schrieb Thomas Gummerer:
>> This sounds roughly like what Barret Rhoden (added to Cc) has been
>> working on.  I haven't followed that patch series in detail, but you
>> can have a look at it atthe latest iteration at
>> https://public-inbox.org/git/20190410162409.117264-1-brho@google.com/.
> 
> As far as I can see this is an "automagic" way of creating those "blame
> skips" - which can be easier in some way, but until it works "perfect"
> It is prone to produce problems IMHO.
> 
> The git history is a "document" that _has_ not to be changed by design.
> So if this "heuristic" produces a wrong result, it's kind of
> unpredictable what was wrong.
> 
> I think it would be MUCH easier to mark chunks or whole commits as  "not
> important" explicitly - by using a file.

I think there's a slight misunderstanding. In the patchset that Michael and I are working on, the user specifies whole commits explicitly. This is usually done with a file, but can also be done from the command line for "one-off" ignored commits. That sounds like what you want.

The heuristics come in when we try to pass blame for specific *lines* that an ignored commit touched. We pass the blame to the parent commit, but we also want to match the lines to a specific line in the parent commit. That way we can find the 'right' ancestor commmit. We're not able to always identify the 'right' commit, hence the heuristics.

Barret
Previous: Christian GonzálezNext: Christian González
Message 4 of 5 in “feature request: .blameignore”
  1. Christian GonzálezApr 15, 2019
  2. Thomas GummererApr 15, 2019
  3. Christian GonzálezApr 15, 2019
  4. Barret RhodenApr 16, 2019
  5. Christian GonzálezApr 16, 2019

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.