From ade0216bd08c2f9c1ed10c1c2274fd5b071c9c93 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 19 Feb 2014 14:14:44 -0400 Subject: pre-commit: Update metadata when committing changes to annexed files within a view. So the user can now switch to a view and then move files around within it to manage metadata. For example, moving a file into a new directory when in the tags=* view adds a tag to it. Implementation is fairly efficient. One diff-index, which is no more expensive than the first stage of a git commit, followed by possibly some cat-file --batch traffic to find the key (when deleting a file). Very similar to what's done in direct mode when committing. And like direct mode when updating the WC after a merge, it has to buffer the diff-tree values in order to make 2 passes over them. When not in a view, pre-commit now does one extra git symbolic-ref, which is tiny overhead. This commit was sponsored by Andrew Eskridge. --- debian/changelog | 2 ++ 1 file changed, 2 insertions(+) (limited to 'debian/changelog') diff --git a/debian/changelog b/debian/changelog index f1afdb821..36ed0b4d5 100644 --- a/debian/changelog +++ b/debian/changelog @@ -8,6 +8,8 @@ git-annex (5.20140211) UNRELEASED; urgency=medium * view: New command that creates and checks out a branch that provides a structured view of selected metadata. * vadd, vpop, vcycle: New commands for operating within views. + * pre-commit: Update metadata when committing changes to annexed files + within a view. * Add progress display for transfers to/from external special remotes. * Windows webapp: Can set up box.com, Amazon S3, and rsync.net remotes * Windows webapp: Can create repos on removable drives. -- cgit v1.2.3