From: Junio C Hamano <gitster@pobox.com>
To: Elijah Newren <newren@gmail.com>
Cc: git@vger.kernel.org, blanet <bupt_xingxin@163.com>,
Xing Xin <xingxin.xx@bytedance.com>
Subject: Re: [PATCH 2/2] remerge-diff: clean up temporary objdir at a central place
Date: Sun, 08 Sep 2024 14:16:20 -0700 [thread overview]
Message-ID: <xmqqed5tx2vv.fsf@gitster.g> (raw)
In-Reply-To: <CABPp-BGmeg3x-F2ZjLzqcDYzSMOfz8Q3BDKUtB=vMO90yJRb3A@mail.gmail.com> (Elijah Newren's message of "Thu, 15 Aug 2024 23:19:37 -0700")
Elijah Newren <newren@gmail.com> writes:
>> I forgot to add that I am not happy with this "centralized tear
>> down" step, even though I am reasonably happy with the "lazy set-up"
>> step. I wonder why the remerge-diff related members have to exist
>> in the rev_info structure in the first place, instead of being in
>> the diffopt structure? Moving them to diffopt may make the end
>> result much more pleasant to read.
>
> I'm not sure they need to exist in the rev_info structure. I was
> probably thinking that e.g. log --remerge-diff would "need to do lots
> of diffs" but I only needed the temporary store setup once, and once
> in my mind matched better with rev_info. I wasn't aware of
> diff_options.no_free or anything surrounding it. If we can do the
> temporary store setup in diffopt and only do it once for all N diffs
> in a `git log --remerge-diff` run, then we could move this stuff from
> rev_info to diffopt.
After staring at the data structure around this area for a while, I
think these two patches are OK, especially within the current
structure. rev_info structure has a set of bits that are marked as
"Diff flags" (some of which are not about diff at all, though; for
example, verbose_header and no_commit_id belong more to the "Format
info" group), and those related to merges do belong there, as they
need more than "here are two tree-like things I want to compare".
So, I'll mark these two patches for 'next' now.
Thanks.
next prev parent reply other threads:[~2024-09-08 21:16 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-09 22:30 [PATCH 1/2] remerge-diff: lazily prpare temporary objdir on demand Junio C Hamano
2024-08-09 22:31 ` [PATCH 2/2] remerge-diff: clean up temporary objdir at a central place Junio C Hamano
2024-08-12 5:17 ` Junio C Hamano
2024-08-16 6:19 ` Elijah Newren
2024-09-08 21:16 ` Junio C Hamano [this message]
2024-08-09 22:37 ` [PATCH 1/2] remerge-diff: lazily prpare temporary objdir on demand Eric Sunshine
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=xmqqed5tx2vv.fsf@gitster.g \
--to=gitster@pobox.com \
--cc=bupt_xingxin@163.com \
--cc=git@vger.kernel.org \
--cc=newren@gmail.com \
--cc=xingxin.xx@bytedance.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.