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

Weird behavior with filenames case #5967

Open
call0fcode opened this issue Jan 16, 2025 · 2 comments
Open

Weird behavior with filenames case #5967

call0fcode opened this issue Jan 16, 2025 · 2 comments
Labels
bug Something isn't working 🦀gitoxide🦀 `gitoxide` might help here 🎉reproduced🎉 The issue could be reproduced by following the instructions

Comments

@call0fcode
Copy link

In the changes area I see files that I've not deleted nor changed.

In fact, I've never touch them .. they just where there when I added the repo from a local folder.

image

The interesting part is that they have the same names but different cases. I'm on a Mac and as far as I know, OSX ignores the case and treats files with same name but different case as if they were the same file.

I also don't see the files on VSCode but I do see them in the repo's main branch in Azure 🫠

image
image

What can I do to get rid of them and have the changes area clean again?

Many thanks in advance for the help 🫡

@Byron Byron added bug Something isn't working 🦀gitoxide🦀 `gitoxide` might help here labels Jan 16, 2025
@Byron
Copy link
Collaborator

Byron commented Jan 16, 2025

Thanks for reporting!

May I ask which version of GitButler you are using?

I think the problem here is that the repository has two files which 'fold' into a single file name on case-insensitive files systems. In this case, git status would show the file as changed as it's always 'wrong' for one of these entries.

Coincidentally I am currently rewriting this part so in future it would start out no better than Git, and show a single change instead of two just like git status would.

Edit: Even in a repository with two overlapping files (new and NEW) with different content for each I wasn't able to have both of them listed 'most' of the time. Sometimes two versions of the file showed up in different lanes, and GitButler would then keep them 'deleted' no matter what I would do.

@Byron Byron added the 🎉reproduced🎉 The issue could be reproduced by following the instructions label Jan 16, 2025
@call0fcode
Copy link
Author

Hi @Byron 😃

Thanks for reviewing and reproduce it!

I'm using the version 0.14.4.

Thanks for the explanation, I've faced this behavior several times on Mac when my team just decides to change the case of a directory or a file.

It's a bit annoying to see the "changes" on the lanes cause they make "noise" and that's why I wanted to report it, but I can live with it.

I just tell my colleagues to remove the files not being used in the project to see what happens. I think they should disappear from the lanes this way.

And yep, it would be nice if GitButler could handle this situation somehow in the future 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working 🦀gitoxide🦀 `gitoxide` might help here 🎉reproduced🎉 The issue could be reproduced by following the instructions
Projects
None yet
Development

No branches or pull requests

2 participants