v6 git-annex unlock

Note that the implementation uses replaceFile, so that the actual
replacement of the work tree file is atomic. This seems a good property to
have!

It would be possible for unlock in v6 mode to be run on files that do not
have their content present. However, that would be a behavior change from
before, and I don't see any immediate need to support it, so I didn't
implement it.
This commit is contained in:
Joey Hess 2015-12-10 16:12:05 -04:00
parent 9dffd3d255
commit e2c8dc6778
Failed to extract signature
5 changed files with 58 additions and 15 deletions

2
debian/changelog vendored
View file

@ -9,6 +9,8 @@ git-annex (6.20151225) unstable; urgency=medium
* 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.
* unlock, lock: In v6 mode, unlocking a file changes it from a symlink to a
pointer file, and this change can be committed to the git repository.
-- Joey Hess <id@joeyh.name> Tue, 08 Dec 2015 11:14:03 -0400