Skip to content

Make abspath() aware of case-insensitive filesystems

Johannes Schindelin via GitGitGadget git 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest1 patch 0 repliesNew
  2. v31 patch 3 repliesSuperseded
  3. v21 patch 2 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v11 patch2 repliesSuperseded

Changes in v4 from the cover letter

* Fixed the oneline (it talked about core.fileMode when it really wanted to talk about core.ignoreCase!).

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1abspath_part_inside_repo: respect core.ignoreCasesetup.c t/t3700-add.sh+10 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH v4 0/1] Make abspath() aware of case-insensitive filesystems

It is completely legitimate these days to call git add with absolute paths. Of course, on a case-insensitive file system, users rightfully expect the argument to be handled case-insensitively, too. This patch makes it so.

Git for Windows carried this patch for over one and a half years already, I think it is time to get it into git.git.

Changes since v3:

* Fixed the oneline (it talked about core.fileMode when it really wanted to talk about core.ignoreCase!).

Change since v2:

* Replaced MINGW prerequisite in the test by CASE_INSENSITIVE_FS. v1 was sent out without a change by mistake. Sorry.

Johannes Schindelin (1):
abspath_part_inside_repo: respect core.ignoreCase

 setup.c        | 6 +++---
 t/t3700-add.sh | 7 +++++++
 2 files changed, 10 insertions(+), 3 deletions(-)

base-commit: 77556354bb7ac50450e3b28999e3576969869068
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-104%2Fdscho%2Fcase-insensitive-abspath-v4
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-104/dscho/case-insensitive-abspath-v4
Pull-Request: https://github.com/gitgitgadget/git/pull/104

Range-diff vs v3:

1: b935e11d21 ! 1: 3fb927fc77 abspath_part_inside_repo: respect core.fileMode
@@ -1,6 +1,6 @@
Author: Johannes Schindelin <[email protected]>

- abspath_part_inside_repo: respect core.fileMode
+ abspath_part_inside_repo: respect core.ignoreCase

If the file system is case-insensitive, we really must be careful to ignore differences in case only.

Signature · 1 line
gitgitgadget