summaryrefslogtreecommitdiff
path: root/Annex.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2010-10-11 17:52:46 -0400
committerGravatar Joey Hess <joey@kitenet.net>2010-10-11 17:52:46 -0400
commitebc3fbe9ae2c5cc52332c77a92697c2517ce8263 (patch)
treef65c38ab3d452c0cde3d0d3b968c216f1ee30705 /Annex.hs
parentaf82586adff96f18fe768e432f501c647401262f (diff)
explicit exports
Diffstat (limited to 'Annex.hs')
-rw-r--r--Annex.hs11
1 files changed, 8 insertions, 3 deletions
diff --git a/Annex.hs b/Annex.hs
index cedc478a4..8660febd5 100644
--- a/Annex.hs
+++ b/Annex.hs
@@ -1,7 +1,12 @@
{- git-annex toplevel code
-}
-module Annex where
+module Annex (
+ State,
+ startAnnex,
+ annexFile,
+ unannexFile
+) where
import System.Posix.Files
import System.Directory
@@ -34,7 +39,7 @@ annexDir repo key = do
- later. -}
startAnnex :: IO State
startAnnex = do
- r <- currentRepo
+ r <- gitRepoCurrent
config <- getConfig r
gitPrep r
return State {
@@ -46,7 +51,7 @@ startAnnex = do
getConfig :: GitRepo -> IO GitConfig
getConfig repo = do
-- a name can be configured, if none is, use the repository path
- name <- gitConfigGet "annex.name" (top repo)
+ name <- gitConfigGet "annex.name" (gitRepoTop repo)
-- default number of copies to keep of file contents is 1
numcopies <- gitConfigGet "annex.numcopies" "1"
backends <- gitConfigGet "annex.backends" ""