All of lore.kernel.org
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Michael Montalbo <mmontalbo@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: [PATCH 3/4] add: introduce '--resolved' option
Date: Wed, 29 Jul 2026 06:43:37 -0700	[thread overview]
Message-ID: <xmqqcxw5c3na.fsf@gitster.g> (raw)
In-Reply-To: <CAC2Qwm+AmeDubDrkLmu8Rz9rtO3697gokwF2=2c5PgP--hZT2w@mail.gmail.com> (Michael Montalbo's message of "Tue, 28 Jul 2026 20:28:11 -0700")

Michael Montalbo <mmontalbo@gmail.com> writes:

> On Tue, Jul 28, 2026 at 2:58 PM Junio C Hamano <gitster@pobox.com> wrote:
>>
>> -       if (addremove && take_worktree_changes)
>> -               die(_("options '%s' and '%s' cannot be used together"), "-A", "-u");
>> +       die_for_incompatible_opt3(take_worktree_changes, "-u/--update",
>> +                                 0 <= addremove_explicit, "-A/--all",
>> +                                 add_resolved, "--resolved");
>>
>
> Should this be "0 < addremove_explicit"?

Thanks for noticing.  '0 <=' is absolutely bogus.

I wonder if we should simply write 'addremove', as this part of the
change is about rewriting the open-coded die_for_incompatible_opt2()
in the original and using die_for_incompatible_opt3() to add a third
option.


>> diff --git a/t/t2207-add-resolved.sh b/t/t2207-add-resolved.sh
>> new file mode 100755
>> index 0000000000..f88e3f413e
>> --- /dev/null
>> +++ b/t/t2207-add-resolved.sh
>
> Does this new test file need a t/meson.build entry?

Yeah, it shows that I rarely exercise meson build.

Thanks.

  reply	other threads:[~2026-07-29 13:43 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-28 21:52 [PATCH 0/4] git add --resolved Junio C Hamano
2026-07-28 21:52 ` [PATCH 1/4] merge-ll: consolidate conflict marker scanning logic Junio C Hamano
2026-07-28 21:52 ` [PATCH 2/4] read-cache: add remove_file_from_index_with_flags() Junio C Hamano
2026-07-28 21:52 ` [PATCH 3/4] add: introduce '--resolved' option Junio C Hamano
2026-07-29  3:28   ` Michael Montalbo
2026-07-29 13:43     ` Junio C Hamano [this message]
2026-07-29 13:49       ` Junio C Hamano
2026-07-29 15:01   ` Junio C Hamano
2026-07-28 21:52 ` [PATCH 4/4] read-cache: reindent Junio C Hamano
2026-07-29 17:25 ` [PATCH v2 0/4] git add --resolved Junio C Hamano
2026-07-29 17:25   ` [PATCH v2 1/4] read-cache: reindent Junio C Hamano
2026-07-29 17:25   ` [PATCH v2 2/4] merge-ll: consolidate conflict marker scanning logic Junio C Hamano
2026-07-29 17:25   ` [PATCH v2 3/4] read-cache: add remove_file_from_index_with_flags() Junio C Hamano
2026-07-29 17:25   ` [PATCH v2 4/4] add: introduce '--resolved' option Junio C Hamano

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=xmqqcxw5c3na.fsf@gitster.g \
    --to=gitster@pobox.com \
    --cc=git@vger.kernel.org \
    --cc=mmontalbo@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.