Git development
 help / color / mirror / Atom feed
From: "Lê Duy Quang" <leduyquang753@gmail.com>
To: git@vger.kernel.org
Subject: `git add` with unmatching case silently fails on case-insensitive file systems
Date: Tue, 21 Jan 2025 14:52:09 +0700	[thread overview]
Message-ID: <7e5e2f26-deda-41a3-af46-79c42435b3c7@gmail.com> (raw)

Good morning,

I am using Git on Windows, whose file system is case-insensitive. If the 
working tree has a file called `SourceFile.c`, for example, and I run 
`git add sourcefile.c`, I would expect either (a) Git stages 
`SourceFile.c` or (b) Git errors with "fatal: pathspec 'sourcefile.c' 
did not match any files". However, none of those actually took place; 
instead Git did not stage the file and produced no output as if the 
command had succeeded, which led me to proceed to committing without 
realizing I had missed the file.

I would like to know whether this is intended behavior or I have bumped 
into a case-sensitivity bug.

Regards,
Quang

             reply	other threads:[~2025-01-21  7:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-21  7:52 Lê Duy Quang [this message]
2025-01-21 17:16 ` `git add` with unmatching case silently fails on case-insensitive file systems Torsten Bögershausen

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=7e5e2f26-deda-41a3-af46-79c42435b3c7@gmail.com \
    --to=leduyquang753@gmail.com \
    --cc=git@vger.kernel.org \
    /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