git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [BUG] log --follow ignore files renamed in a merge commit
@ 2020-03-31  5:28 Thibault Delor
  0 siblings, 0 replies; only message in thread
From: Thibault Delor @ 2020-03-31  5:28 UTC (permalink / raw)
  To: git

Hello there,

I have raised my initial issue on Stack Overflow:
https://stackoverflow.com/questions/60927159/merging-repo-with-git-subtree-prefix-break-the-history

After reading the code, it's definitely a bug with git log.
The actual issue is that if a file has been renamed inside a commit
with 2+ parents `git log --follow` won't show it and loose track of
the file. On the other side, running `git log -m --follow ...` is
working as expected.

I would be really keen to submit a patch in the next couple of days.

I am planning to tweak the method `log_tree_diff` in log_tree.c as I
feel that's where the error coming from. I am guess I will have to
force somehow the evaluation of the diff (even if the diff isn't
displayed) so the method `try_to_follow_renames` gets a chance to be
evaluated.

I have never contributed to git source code, I'll the doc
"SubmittingPatches" but feel free to give any guidance.

Thanks
Tibo

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-03-31  5:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-31  5:28 [BUG] log --follow ignore files renamed in a merge commit Thibault Delor

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).