gitui icon indicating copy to clipboard operation
gitui copied to clipboard

Warn when trying to commit files that should be tracked in LFS

Open andresovela opened this issue 6 months ago • 2 comments

I found out today that gitui does not yet support git lfs (https://github.com/gitui-org/gitui/discussions/1089).

Today I pushed a large file by accident because I didn't realize gitui wouldn't do the expected thing. It'd be nice if gitui warned about adding/committing files tracked in LFS as long as LFS is not supported.

A short "this file is tracked in LFS but gitui does not support it yet - add this file manually using git" would prevent this from happening :)

andresovela avatar Jul 10 '25 12:07 andresovela

Wonder how we can programmatically figure that out

extrawurst avatar Jul 10 '25 12:07 extrawurst

The .gitattributes file has something like this:

*.iso filter=lfs diff=lfs merge=lfs -text

I guess it's just a matter of issuing a warning on all .iso files then, or whatever the rule is

andresovela avatar Jul 10 '25 13:07 andresovela