init: Configure .git/info/attributes to use git-annex as a smudge filter.

Note that this changes the default behavior of git add in a newly
initialized repository; it will add files to the annex.

Don't like that this could break workflows, but it's necessary in order for
any pointer files in the repo to be handled by git-annex.
This commit is contained in:
Joey Hess 2015-12-04 17:57:15 -04:00
parent fb6ebdaae7
commit 2fe21d47c5
Failed to extract signature
6 changed files with 60 additions and 21 deletions

View file

@ -306,7 +306,9 @@ just look at the repo content in the first place..
annex.version changes to 6
On upgrade, update $GIT_DIR/info/attributes with a stock configuration,
git config for filter.annex.smudge and filter.annex.clean is set up.
.gitattributes is updated with a stock configuration,
unless it already mentions "filter=annex".
Upgrading a direct mode repo needs to switch it out of bare mode, and