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

Re: [PATCH v4 1/3] Add test to describe expectation of blame --reverse with branched history

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 27, 2015, 17:57 UTC
Message-ID
<xmqqk2q8chyb.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<20151027044049.GA18120@wheezy.local>
Max Kirillov <max@max630.net> writes:
Show 25 quoted lines
>> The explanation of the first paragraph needs to be rewritten to make
>> it understandable, but I am not sure what relevance it has with this
>> change.
> ...
> So the history looks rather like (the interesting line is removed
> in B1, line removal is practically more interesting case because
> edits can be found with normal forward blame):
>
>
>  a0--a1-----*a2-*a3-a4...-*a100
>  |\         /   /         /
>  | b0-B1..bN   /         /
>  |\           /         /
>  | c0..   ..cN         /
>  \                    /
>   z0..            ..zN
>
> ...where many of the c-z branches started before a1 and
> contain the older version of line. And, what I usually need
> is the change b0->B1, because I expect to find there the
> person who did it and explanation why that was done.
>
> Now the git blame --reverse a0..a100 may return me zN, and in
> practice it often does return some quite late commit wN
> which was merged to some a90.

That covers a lot of what I meant by "rewritten to make it understandable". Instead of picking any of the random cN thru zN, you are forcing to find a2, because at the initial phase of the search, you are interested in granularity at the topic level. And the --first-parent combined with --reverse is exactly that, and it is a good thing to support it.

Previous: Max KirillovNext: Max Kirillov
Message 11 of 13 in “blame: allow blame --reverse --first-parent when it makes sense”
  1. 0/2 blame: allow blame --reverse --first-parent when it makes senseMax Kirillov, Oct 22, 2015
  2. 1/2 Add test to describe expectation of blame --reverse with branched historyMax Kirillov, Oct 22, 2015
  3. 2/2 blame: allow blame --reverse --first-parent when it makes senseMax Kirillov, Oct 22, 2015
  4. 0/4 blame: allow blame --reverse --first-parent when it makes senseMax Kirillov, Oct 26, 2015
  5. 0/4 blame: allow blame --reverse --first-parent when it makes senseMax Kirillov, Oct 26, 2015
  6. Max KirillovOct 26, 2015
  7. 1/3 Add test to describe expectation of blame --reverse with branched historyMax Kirillov, Oct 26, 2015
  8. Max KirillovOct 26, 2015
  9. Junio C HamanoOct 26, 2015
  10. Max KirillovOct 27, 2015
  11. Junio C HamanoOct 27, 2015
  12. 2/3 blame: extract find_single_finalMax Kirillov, Oct 26, 2015
  13. 3/3 blame: allow blame --reverse --first-parent when it makes senseMax Kirillov, Oct 26, 2015

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.