git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Please explain avoiding history simplifications when diffing merges
@ 2023-09-08  9:09 Magnus Holmgren
  2023-09-15 15:10 ` Magnus Holmgren
  0 siblings, 1 reply; 4+ messages in thread
From: Magnus Holmgren @ 2023-09-08  9:09 UTC (permalink / raw)
  To: git

Hi (and thanks for a great free tool).

QGit was bitten by 
https://github.com/git/git/commit/0dec322d31db3920872f43bdd2a7ddd282a5be67

It looks like passing --simplify-merges to override the default solves the 
problem, but I still want to ask here because I'm not sure I fully understand 
the reasoning:

> the default history simplification would remove merge commits from 
> consideration if the file "path" matched the second parent.

I guess that means that even if there was a difference relative to the first 
parent, which you wanted to see, the merge commit would be omitted if there's 
no diff relative to the second parent? That's fine, and history simplification 
isn't trivial, but now every merge commit ever is included in the commit log 
of an individual file, even if that file was only added somewhere in the 
middle and never changed since. Is that really desirable? Shouldn't it be 
possible to include only merge commits that are not TREESAME to *all* parents?

Thanks,
-- 
Magnus Holmgren
./¯\_/¯\. Milient
(also holmgren@debian.org)



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-09-25 16:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-08  9:09 Please explain avoiding history simplifications when diffing merges Magnus Holmgren
2023-09-15 15:10 ` Magnus Holmgren
2023-09-17  9:58   ` Bagas Sanjaya
2023-09-25 16:11     ` Magnus Holmgren

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 NNTP newsgroup(s).