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

Re: [PATCH v4] log: improve --follow following renames for non-linear history

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 22, 2026, 12:44 UTC
Message-ID
<xmqq1pdy4udg.fsf@gitster.g>
In-Reply-To
<ajjU4w2B0NlZffw1@collabora.com>
Miklos Vajna <vmiklos@collabora.com> writes:
Show 6 quoted lines
> I noticed that merging 'mv/log-follow-mergy' to 'master' results in a
> (simple) conflict since commit 42d960748e (line-log: integrate -L output
> with the standard log-tree pipeline, 2026-05-28), this is an updated
> version that resolves the conflict.
> ...
> Please replace the content of that branch with this patch.

If there are changes of substance, polishing with new iterations is welcome even without any code change (e.g., clarifying the proposed log message or documentation to help future readers understand what went on in this patch would count), but as long as the resolution that is in my tree (as a part of 'seen') exactly matches what your update contains (meaning: rerere will do the same correct resolution when the topic gets merged to 'master' anyway) and the conflict is trivial to resolve by hand for others, which seems to be the case here,

    $ git checkout --detach master
    $ git -c rerere.autoupdate merge mv/log-follow-mergy
    $ git commit --no-edit
    $ HERE=$(git rev-parse HEAD)
    $ git reset --hard HEAD^ ;# back at 'master'
    $ git am $this_message
    $ git diff $HERE ;# shows nothing
    $ git range-diff master..$HERE master..HEAD ;# no change in the log message
I'd prefer not to see such a reroll.
Thanks.
Previous: Miklos VajnaNext: Miklos Vajna
Message 11 of 18 in “log: let --follow follow renames in merge commits”
  1. log: let --follow follow renames in merge commitsMiklos Vajna, May 12, 2026
  2. Miklos VajnaMay 19, 2026
  3. Junio C HamanoMay 19, 2026
  4. Junio C HamanoMay 19, 2026
  5. log: improve --follow following renames for non-linear historyMiklos Vajna, Jun 8, 2026
  6. Junio C HamanoJun 8, 2026
  7. log: improve --follow following renames for non-linear historyMiklos Vajna, Jun 11, 2026
  8. Junio C HamanoJun 11, 2026
  9. log: improve --follow following renames for non-linear historyMiklos Vajna, Jun 15, 2026
  10. log: improve --follow following renames for non-linear historyMiklos Vajna, Jun 22, 2026
  11. Junio C HamanoJun 22, 2026
  12. Miklos VajnaJun 23, 2026
  13. Junio C HamanoJun 12, 2026
  14. Miklos VajnaMay 20, 2026
  15. Jeff KingMay 22, 2026
  16. log: improve --follow following renames in merge commitsMiklos Vajna, May 23, 2026
  17. Miklos VajnaMay 30, 2026
  18. Miklos VajnaJun 4, 2026

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.