summaryrefslogtreecommitdiff
path: root/GitAnnex.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-01-06 15:40:04 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-01-06 15:40:07 -0400
commita3a9f87047d27306c27f4108ee58af3365f284af (patch)
tree26fbd58b758a0a3773f7df05d30a8c101d866e1b /GitAnnex.hs
parent1f8a1058c96bd4ee11fcb353f0ede1842d79ab6a (diff)
log: New command that displays the location log for file, showing each repository they were added to and removed from.
This needs to run git log on the location log files to get at all past versions of the file, which tends to be a bit slow. It would be possible to make a version optimised for showing the location logs for every key. That would only need to run git log once, so would be faster, but it would need to process an enormous amount of data, so would not speed up the individual file case. In the future it would be nice to support log --format. log --json also doesn't work right yet.
Diffstat (limited to 'GitAnnex.hs')
-rw-r--r--GitAnnex.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/GitAnnex.hs b/GitAnnex.hs
index 64020754f..78f20e9d1 100644
--- a/GitAnnex.hs
+++ b/GitAnnex.hs
@@ -41,6 +41,7 @@ import qualified Command.Lock
import qualified Command.PreCommit
import qualified Command.Find
import qualified Command.Whereis
+import qualified Command.Log
import qualified Command.Merge
import qualified Command.Status
import qualified Command.Migrate
@@ -85,6 +86,7 @@ cmds = concat
, Command.DropUnused.def
, Command.Find.def
, Command.Whereis.def
+ , Command.Log.def
, Command.Merge.def
, Command.Status.def
, Command.Migrate.def