From d9d8b83714e0c297858801c5fbf5bca056738ca8 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 25 Feb 2016 16:11:13 -0400 Subject: adjusted branches, proof of concept "git annex adjust" may be a temporary interface, but works for a proof of concept. It is pretty fast at creating the adjusted branch. The main overhead is injecting pointer files. It might be worth optimising that by reusing the symlink target as the pointer file content. When I tried to do that, the problem was that the clean filter doesn't use that same format, and so git thought files had changed. Could be dealt with, perhaps make the clean filter use symlink format for pointer files when on an adjusted branch? But the real overhead is in checking out the branch, when git runs the smudge filter once per file. That is perhaps too slow to be usable, although it may only affect initial checkout of the branch, and not updates. TBD. --- CmdLine/GitAnnex.hs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'CmdLine') diff --git a/CmdLine/GitAnnex.hs b/CmdLine/GitAnnex.hs index 71a69e861..b8c97a30a 100644 --- a/CmdLine/GitAnnex.hs +++ b/CmdLine/GitAnnex.hs @@ -38,6 +38,7 @@ import qualified Command.SetPresentKey import qualified Command.ReadPresentKey import qualified Command.CheckPresentKey import qualified Command.ReKey +import qualified Command.Adjust import qualified Command.MetaData import qualified Command.View import qualified Command.VAdd @@ -174,6 +175,7 @@ cmds testoptparser testrunner = , Command.ReadPresentKey.cmd , Command.CheckPresentKey.cmd , Command.ReKey.cmd + , Command.Adjust.cmd , Command.MetaData.cmd , Command.View.cmd , Command.VAdd.cmd -- cgit v1.2.3