diff options
author | Joey Hess <joeyh@joeyh.name> | 2016-02-25 16:11:13 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2016-02-25 16:23:24 -0400 |
commit | d9d8b83714e0c297858801c5fbf5bca056738ca8 (patch) | |
tree | 306136b4b1ee9b75e22d9bca41f6a70ff457cd46 /CmdLine | |
parent | fecc1819270f3249118a2ce8599be7246e0db745 (diff) |
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.
Diffstat (limited to 'CmdLine')
-rw-r--r-- | CmdLine/GitAnnex.hs | 2 |
1 files changed, 2 insertions, 0 deletions
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 |