Re: git log --follow wrongly includes delete commit
From: Steinar H. Gunderson <hidden>
Date: 2023-01-26 17:18:43
From: Steinar H. Gunderson <hidden>
Date: 2023-01-26 17:18:43
On Thu, Jan 26, 2023 at 11:38:42AM -0500, Derrick Stolee wrote:
It's actually a third option: it was deleted but also renamed in an independent point in history, but the delete is more recent "in time" that it shows up first, and the merge that resolves the issue doesn't show up at all.
I see! So basically my parser needs to also start tracking merges, except --follow seems to be sort of odd with those as well (though I think maybe it's changed in some fairly recent git version).
(Note: I didn't include --follow here as it filtered the --graph output in a strange way, including dropping the merge commitswhich was confusing to me.)
I think you need to give -c or --cc or something similar to see merges in --follow, but the man pages are not entirely clear to me. /* Steinar */ -- Homepage: https://www.sesse.net/