What does the filter.lfs.required Git attribute do?

Viewed 2942

git lfs install sets the filter.lfs.required attribute to true. This attribute isn't documented anywhere. What does it do?

2 Answers

Ah actually this is a generic Git attribute that for some reason is not listed in gitconfig but it is listed in gitattributes.

If a filter must succeed in order to make the stored contents usable, you can declare that the filter is required

So I guess it just means it doesn't abort if the filter fails. However, I tested setting it to false and git cloneing an LFS-enabled repo still fails even when it's only the LFS filter that fails, so honestly I have no idea what that setting does.

Related