From: Bagas Sanjaya <bagasdotme@gmail.com>
To: Magnus Holmgren <magnus.holmgren@milientsoftware.com>,
git@vger.kernel.org
Cc: "Santi Béjar" <santi@agolina.net>,
"Junio C Hamano" <gitster@pobox.com>,
"Sergey Organov" <sorganov@gmail.com>,
"Christian Couder" <christian.couder@gmail.com>,
"Jeff King" <peff@peff.net>, "René Scharfe" <l.s.r@web.de>
Subject: Re: Please explain avoiding history simplifications when diffing merges
Date: Sun, 17 Sep 2023 16:58:14 +0700 [thread overview]
Message-ID: <ZQbNtgd82iARQ39D@debian.me> (raw)
In-Reply-To: <2250343.okVFLFBGsW@utklippan>
[-- Attachment #1: Type: text/plain, Size: 1616 bytes --]
On Fri, Sep 15, 2023 at 05:10:28PM +0200, Magnus Holmgren wrote:
> Friday, 8 September 2023 11:09:20 CEST, I wrote
> > QGit was bitten by
> > https://github.com/git/git/commit/0dec322d31db3920872f43bdd2a7ddd282a5be67
>
> Maybe I should link to the QGit issue:
> https://github.com/tibirna/qgit/issues/129
>
> > 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.
>
> As I wrote at the above URL, I realized that the old git log output without --
> simplify-merges and the output with --simplify-merges aren't quite the same.
> The old output indeed omits some interesting merge commits, which may explain
> why the change was made, but git log --simplify-merges does include them, so
> it seems a reasonable default to me.
Can you provide examples?
>
> However, QGit has a problem: git log --diff-merges=separate includes a
> separate diff for each parent, but only for each parent with differences
> compared to the merge commit, *and* there's no custom format placeholder for
> the current parent, only for the list of parents (%P/%p). How should one go
> about adding that? I figure the format_commit_context struct in pretty.c needs
> another field.
What are you trying to accomplish with your proposed formatting verbs?
Confused...
--
An old man doll... just what I always wanted! - Clara
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2023-09-17 9:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2023-09-25 16:11 ` Magnus Holmgren
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZQbNtgd82iARQ39D@debian.me \
--to=bagasdotme@gmail.com \
--cc=christian.couder@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=l.s.r@web.de \
--cc=magnus.holmgren@milientsoftware.com \
--cc=peff@peff.net \
--cc=santi@agolina.net \
--cc=sorganov@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.