From: Jon Forrest <nobozo@gmail.com>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org
Subject: Re: Repost: Inconsistent Behavior in 'git add' (git 2.52.0)?
Date: Sun, 18 Jan 2026 09:50:27 -0800 [thread overview]
Message-ID: <c51367f1-9ce2-4580-9f7c-4b1adc989582@gmail.com> (raw)
In-Reply-To: <xmqq8qdydddl.fsf@gitster.g>
Thanks for your response. This is indeed a very minor issue.
On 1/15/26 8:55 AM, Junio C Hamano wrote:
> It is plausible to teach "git add" to treat paths that are
> explicitly named on the command line (as opposed to the paths that
> are discovered due to recursion) differently, but that would be a
> new feature, not a bugfix, I would think.
Agreed. I had been thinking of 'git add' as a kind of
database transaction, where either everything happens,
or nothing happens.
An excluded file isn't considered the same type of
error as an invalid file, which is fine as long as
a user is aware of this behavior. The fact that
'git add' warns about ignored files helps.
Again, this is a tiny, tiny issue.
Cordially,
Jon Forrest
prev parent reply other threads:[~2026-01-18 17:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-15 16:36 Repost: Inconsistent Behavior in 'git add' (git 2.52.0)? Jon Forrest
2026-01-15 16:55 ` Junio C Hamano
2026-01-18 17:50 ` Jon Forrest [this message]
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=c51367f1-9ce2-4580-9f7c-4b1adc989582@gmail.com \
--to=nobozo@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.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