sublime_merge
sublime_merge copied to clipboard
.gitattributes is not parsed correctly for LFS files
Version info
- OS: Ubuntu 24.04
- Build: 2096
Description
.gitattributes is not parsed correctly for LFS files
Steps to reproduce
Given
- init a fresh git repo
- commit the following content (*) to
.gitattributes:
* filter=lfs diff=lfs merge=lfs -text **/*.txt filter= diff= merge= text
- commit the following content to
foo.txt:
asdf
When touch foo.txt
Then
- foo.txt file will be labeld as
LFS(even though it is not saved there) - foo.txt will be depicted as modified due to "line-endings changed since checkout"
Note that running "git status" will resolve these "false positives".
Expected behavior
Not labeled as LFS and line endings interpreted correctly.
Screenshots
Disclaimer
(*) Yes, I know its a weird thing to do. Rest assured: Its not my invention.
Hi @t4n0,
Thanks for reaching out and reporting this issue. I'll be investigating this further and will reach out when I've got more information.
Cheers, - Dylan from Sublime HQ