-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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 gutter shows everything changed with automatic end-of-line conversion (.gitattributes contains * text=auto) #8145
Comments
helix currently only supports CC @Byron |
Indeed, times have changed. Now It works in both directions, and one can also convert the worktree representation back to what's stored in Probably that should now be used instead of the manual implementation used in |
Thanks, that's great news! The next release is right around the corner so a fix won't land before that but in the next cycle we should definitely swap. The API seems fairly straightforward. The only thing I am not sure how to deal with the |
When converting to worktree there is a Please note that Talking about performance, on typical repository going through the filter pipeline is as good as free when no filter is actually applied, and even if this is the case, the built-in filters costs nearly nothing. So should fit right into |
Thanks! Forbidding delays seems reasonable here since we can't progress until the file filter finished |
Yes, absolutely! It's not worth the complexity and I don't think that most filters will benefit enough from it to do that. |
Hey I noticed this is labeled as easy I would be happy to work on it if that's ok for you 😄 I love using Helix I would like to start contributing |
I tried updating the gix dependency, but got this error:
seems a bit strange considering the MSRV of gix should be 1.65.0 https://github.com/Byron/gitoxide/blob/a12e4a88d5f5636cd694c72ce45a8b75aa754d28/clippy.toml#L1 |
See #7863 |
Summary
Git has a feature to check out text files with native line endings, something that is often used for crossplatform development.
When viewing a file on windows which has been converted to crlf this way, the git gutter shows everything changed:
However, when setting
:line-ending lf
it doesn't anymore:This is no workaround, because this actually changed the line endings of the file to lf, where crlf is desired.
Note that
git diff
works correctly, and does not report any changes.Reproduction Steps
No response
Helix log
No response
Platform
Windows
Terminal Emulator
wezterm 20230828-220414-99c96139
Helix Version
helix 23.05 (19b73bc)
The text was updated successfully, but these errors were encountered: