This commit is contained in:
Joey Hess 2015-05-05 14:50:37 -04:00
parent 7cb277c331
commit df514fc685

View file

@ -0,0 +1,15 @@
[[!comment format=mdwn
username="joey"
subject="""comment 1"""
date="2015-05-05T18:46:42Z"
content="""
The problem with this pre-commit hook is that by the time you run `git add
largfile`, it has copied it into the git repository. Your hook will prevent
it getting into a commit, so the repository will eventually garbage collect
the copy away, but this can take some time or manual work to do.
Recent versions of `git-annex add` will look at the annex.largefiles
configuration and if the file does not match, add it to git directly.
So that's an alternate workflow, where you `git annex add` files and let
git-annex decide whether to put them in the annex or the git repository.
"""]]