sublimehq / sublime_merge

Issue tracker for Sublime Merge
https://www.sublimemerge.com
276 stars 14 forks source link

.gitattributes is not parsed correctly for LFS files #1970

Open t4n0 opened 1 month ago

t4n0 commented 1 month ago

Version info

Description

.gitattributes is not parsed correctly for LFS files

Steps to reproduce

Given

  1. init a fresh git repo
  2. commit the following content (*) to .gitattributes:

    * filter=lfs diff=lfs merge=lfs -text */.txt filter= diff= merge= text

  3. commit the following content to foo.txt:

    asdf

When touch foo.txt

Then

Note that running "git status" will resolve these "false positives".

Expected behavior

Not labeled as LFS and line endings interpreted correctly.

Screenshots

image

Disclaimer

(*) Yes, I know its a weird thing to do. Rest assured: Its not my invention.

dpjohnst commented 1 month ago

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