From: Junio C Hamano <gitster@pobox.com>
To: Yannik Tausch <dev@ytausch.de>
Cc: Kristoffer Haugsbakk <kristofferhaugsbakk@fastmail.com>,
git@vger.kernel.org,
Manuel Lerchner <manuel.lerchner@quantco.com>,
Yannik Tausch <yannik.tausch@quantco.com>
Subject: Re: [PATCH v2] merge-file: honor merge.conflictStyle outside of a repository
Date: Fri, 06 Feb 2026 13:53:16 -0800 [thread overview]
Message-ID: <xmqqqzqxczeb.fsf@gitster.g> (raw)
In-Reply-To: <D514F3BA-36DD-4DAD-BF73-609730390A27@ytausch.de> (Yannik Tausch's message of "Thu, 5 Feb 2026 22:55:58 +0100")
Yannik Tausch <dev@ytausch.de> writes:
>> Junio C Hamano <gitster@pobox.com> wrote:
>
>> Wouldn't it suffice to unconditionally execute the body of the if
>> (startup_info->have_repository) block to pass "repo" we obtained
>> from the caller to repo_config() instead of the_repository? The
>> caller of this function passes us either the_repository or NULL and
>> repo_config() does the very-early thing when passed NULL as the
>> repo, signalling that we are outside a repository.
>
> Jup, looks like I missed that. Implemented your suggestion!
> ...
> Done!
>
> Here is the new patch:
>
> From 9fa437c70bfd328cfdfe9cfca982b49b70ad033f Mon Sep 17 00:00:00 2001
> From: Yannik Tausch <dev@ytausch.de>
> Date: Thu, 5 Feb 2026 21:09:52 +0100
> Subject: [PATCH v2] merge-file: honor merge.conflictStyle outside of a
> repository
Please do not send patches this way. Giving responses to review
comments is very good and strongly encouraged, but stop the response
message with "a new version of the patch coming!" and have a separate
message for the patch itself.
It sometimes is done to interject a sample patch in the middle of a
discussion, but then the convention is
... continuation of an existing discussion ...
So, how about doing things this way?
--- >8 ---
Subject: the title of the patch
The proposed log message for the commit comes here
Signed-off-by: you
---
... notes, diffstat, diff ...
i.e., use a scissors line to tell the receiving end that the rest of
the message is a patch message, and override the Subject: with an
in-body header. Omit the (From <object-name> Mon Sep 17 2001)
"magic" line, "From:" and "Date:". The last two can be taken from
the e-mail message anyway.
next prev parent reply other threads:[~2026-02-06 21:53 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-05 15:06 [DOC] merge-file: document that merge.conflictStyle requires a repository Yannik Tausch
2026-02-05 19:11 ` Junio C Hamano
2026-02-05 20:27 ` [PATCH] merge-file: honor merge.conflictStyle outside of " Yannik Tausch
2026-02-05 20:44 ` Junio C Hamano
2026-02-05 20:51 ` Kristoffer Haugsbakk
2026-02-05 21:55 ` [PATCH v2] " Yannik Tausch
2026-02-06 21:53 ` Junio C Hamano [this message]
2026-02-07 21:28 ` Yannik Tausch
2026-02-07 21:37 ` Yannik Tausch
2026-02-07 21:47 ` Kristoffer Haugsbakk
2026-02-09 9:08 ` Patrick Steinhardt
2026-02-09 16:13 ` 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=xmqqqzqxczeb.fsf@gitster.g \
--to=gitster@pobox.com \
--cc=dev@ytausch.de \
--cc=git@vger.kernel.org \
--cc=kristofferhaugsbakk@fastmail.com \
--cc=manuel.lerchner@quantco.com \
--cc=yannik.tausch@quantco.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox