forum/largefiles: fail-on-unspecified mode?git-annexhttp://git-annex.branchable.com/forum/largefiles__58___fail-on-unspecified_mode__63__/git-annexikiwiki2019-01-21T15:42:51Zcomment 1http://git-annex.branchable.com/forum/largefiles__58___fail-on-unspecified_mode__63__/comment_1_0bddf22d95cccf68a2852d7ef3a6dc19/joey2019-01-21T15:42:51Z2019-01-16T19:11:35Z
<p>This is a good idea, but unfortunately the interface that <code>git add</code> uses to
run git-annex doesn't provide a way for git-annex to request that the file
not be added. Even if git-annex exits with an error, git will assume the
best thing to do is to add the file itself. As documented in the gitattributes(5)
man page:</p>
<pre><code> A missing filter driver definition in the config, or a filter driver that
exits with a non-zero status, is not an error but makes the filter a
no-op passthru.
</code></pre>
<p>So this would I think need an extension to git..</p>
<p>However, there is a fairly easy way to convert an annexed file to be stored in git
if your annex.largefiles configuration didn't do the right thing:</p>
<pre><code>touch thefile
git -c annex.largefiles=nothing add thefile
</code></pre>