Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Git does not recognize case changes in file extension #5143

Open
1 task done
Leetfs opened this issue Sep 15, 2024 · 0 comments
Open
1 task done

Git does not recognize case changes in file extension #5143

Leetfs opened this issue Sep 15, 2024 · 0 comments

Comments

@Leetfs
Copy link

Leetfs commented Sep 15, 2024

  • I was not able to find an open or closed issue matching what I'm seeing

Setup

  • git version 2.46.0.windows.1
  • 64-bit
$ git --version --build-options

**
$ git --version --build-options
git version 2.46.0.windows.1
cpu: x86_64
built from commit: 2e6a859ffc0471f60f79c1256f766042b0d5d17d
sizeof-long: 4
sizeof-size_t: 8
shell-path: D:/git-sdk-64-build-installers/usr/bin/sh
feature: fsmonitor--daemon
libcurl: 8.9.0
OpenSSL: OpenSSL 3.2.2 4 Jun 2024
zlib: 1.3.1
 **
  • Windows11 64-bit
$ cmd.exe /c ver

Microsoft Windows [版本 10.0.22631.4169]
  • What options did you set as part of the installation? Or did you choose the
    defaults?
  • defaults
# One of the following:
> type "C:\Program Files\Git\etc\install-options.txt"
> type "C:\Program Files (x86)\Git\etc\install-options.txt"
> type "%USERPROFILE%\AppData\Local\Programs\Git\etc\install-options.txt"
> type "$env:USERPROFILE\AppData\Local\Programs\Git\etc\install-options.txt"
$ cat /etc/install-options.txt

** Editor Option: VIM
Custom Editor Path: 
Default Branch Option:  
Path Option: Cmd
SSH Option: OpenSSH
Tortoise Option: false
CURL Option: OpenSSL
CRLF Option: CRLFAlways
Bash Terminal Option: MinTTY
Git Pull Behavior Option: Merge
Use Credential Manager: Enabled
Performance Tweaks FSCache: Enabled
Enable Symlinks: Disabled
Enable Pseudo Console Support: Disabled
Enable FSMonitor: Disabled
 **

Details

  • Which terminal/shell are you running Git from? e.g Bash/CMD/PowerShell/other

** Bash **

**  
git add .
git commit -m "docs"
**
  • What did you expect to occur after running these commands?

**Expected Behavior: When I change the case of a file extension (e.g., from .TXT to .txt), Git should recognize this as a change in the file name and display it as a staged change in git status. I should be able to commit this case change to version control. **

  • What actually happened instead?

** Actual Behavior: After changing the case of the file extension, Git does not detect the change, and git status shows the working directory as clean, making it impossible to commit the case change. This happens on case-insensitive file systems like Windows and macOS. **

@Leetfs Leetfs changed the title Title: Git does not recognize case changes in file extension Git does not recognize case changes in file extension Sep 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant