From: Junio C Hamano <gitster@pobox.com>
To: "brian m. carlson" <sandals@crustytoothpaste.net>
Cc: Aditya Garg <gargaditya08@live.com>,
git@vger.kernel.org, Eric Sunshine <sunshine@sunshineco.com>
Subject: Re: [PATCH] help: inform about 'git update-git-for-windows' on Windows
Date: Wed, 21 May 2025 15:23:33 -0700 [thread overview]
Message-ID: <xmqq5xht8uxm.fsf@gitster.g> (raw)
In-Reply-To: <aC5MOl66YuIK1eyU@tapette.crustytoothpaste.net> (brian m. carlson's message of "Wed, 21 May 2025 21:57:14 +0000")
"brian m. carlson" <sandals@crustytoothpaste.net> writes:
> On 2025-05-21 at 14:22:29, Aditya Garg wrote:
>> diff --git a/help.c b/help.c
>> index 6ef90838f1..238ed1913c 100644
>> --- a/help.c
>> +++ b/help.c
>> @@ -355,6 +355,9 @@ void list_common_cmds_help(void)
>> puts(_("These are common Git commands used in various situations:"));
>> putchar('\n');
>> print_cmd_by_category(common_categories, NULL);
>> +#ifdef _WIN32
>> + printf("\n'git update-git-for-windows' can be used to update git.\n");
>> +#endif
>
> I don't think this belongs in our codebase. It should instead be
> carried as a patch in Git for Windows. The reason is that there are a
> variety of possible projects that compile for Windows—Git for Windows,
> Cygwin, MINGW, etc.—and only one of them ships this binary. It is even
> possible for users to compile their own Windows binaries, which I know
> is at least done by Microsoft as well as some Git contributors on
> Windows.
>
> This change might be misleading or incorrect as it might tell users to
> invoke a binary which is not present or to update software in a way
> which is not via the normal package mechanism. For instance, telling a
> MINGW or Cygwin user to run that command would not result in anything
> useful or desired happening.
Do you mean that this is OK if the #ifdef were more specific to
Git-for-Windows? Just being curious.
next prev parent reply other threads:[~2025-05-21 22:23 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-20 19:31 Proposal: Add tip to use git update-git-for-windows when running git help or git version on Windows Aditya Garg
2025-05-21 14:22 ` [PATCH] help: inform about 'git update-git-for-windows' " Aditya Garg
2025-05-21 21:57 ` brian m. carlson
2025-05-21 22:23 ` Junio C Hamano [this message]
2025-05-21 23:00 ` brian m. carlson
2025-05-22 3:18 ` Aditya Garg
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=xmqq5xht8uxm.fsf@gitster.g \
--to=gitster@pobox.com \
--cc=gargaditya08@live.com \
--cc=git@vger.kernel.org \
--cc=sandals@crustytoothpaste.net \
--cc=sunshine@sunshineco.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