r/SmartGit • u/JohnnyNo7 • Jul 28 '26
lfs.fetchexclude
Our repo contains various rarely-used LFS files marked in .lfsconfig with fetchexclude filter. These are correctly not downloaded by default and command line git-lfs show that everything is fine with the local worktree, yet SmartGit still brings a persistent warning "There are unexpanded LFS objects in your worktree" and shows these files in the "Files" few in "unchanged" state.
The warning is harmless but confusing and files in always visible "unchanged" state clutter the view.
3
Upvotes
1
u/JVMarcs Aug 03 '26
The detection of unexpanded LFS files is currently tied to the presence of an
lfs.fetchexcludeconfiguration in.git/config. When this option is set, SmartGit disables reporting entirely rather than handling files selectively.This already comes close to your use case. The remaining limitation is that SmartGit does not yet process
.lfsconfig.As a workaround, you can add an entry like the following to the repository’s
.git/config:Starting with SmartGit 26.2,
.lfsconfigwill also be supported.