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

Re: RFC GSoc Idea: blame: do not overly favor earlier parents

From
Junio C Hamano <gitster@pobox.com>
Date
Mar 6, 2014, 20:24 UTC
Message-ID
<xmqq4n3bxegc.fsf@gitster.dls.corp.google.com>
In-Reply-To
<87siqvcc30.fsf@fencepost.gnu.org>
David Kastrup <dak@gnu.org> writes:
Show 23 quoted lines
> Junio C Hamano <gitster@pobox.com> writes:
>
>> When looking at a merge, "git blame" inspects the blob object names
>> of all parents and if one of them exactly match the merge result,
>> pass the entire blame down to that parent.  This is very much in
>> line with the history simplification done with "git log" when
>> traversing a history with merges.
>
> [...]
>
>> Now, imagine if you amend M to create N, to add a single line at the
>> end of path.  M:path != N:path but there is very small difference
>> between the two.  That means B:path != N:path but the difference
>> between this merged result and the second parent is very small.
>
> That sounds very much like
>
> commit d5df1593f27bfceab807242a538cb3fa01256efd
> Merge: 7144168 0b4e246
> Author: Junio C Hamano <gitster@pobox.com>
> Date:   Fri Feb 28 13:51:19 2014 -0800
>
>     Merge branch 'bl/blame-full-history' into pu

That one was an attempt to solve the right issue in a wrong way, made things worse by breaking the consistency with the history simplification of "git log".

The "Idea" is to solve it in the way that is still consistent with the usual history simplification.

Previous: David Kastrup
Message 3 of 3 in “RFC GSoc Idea: blame: do not overly favor earlier parents”
  1. Junio C HamanoMar 6, 2014
  2. David KastrupMar 6, 2014
  3. Junio C HamanoMar 6, 2014

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.