summaryrefslogtreecommitdiff
path: root/Annex/Branch.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-12-11 14:14:28 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-12-11 14:14:28 -0400
commit0ba4b1de18acf9e2318da6c8e7d80ce4bb216850 (patch)
treea7dec70d53ac0c9d8b562e573821f5d62175cbfe /Annex/Branch.hs
parentbf6a3b757adebe92b330c4216fb32fbf1a6d64d2 (diff)
move a file location to Locations.hs
Diffstat (limited to 'Annex/Branch.hs')
-rw-r--r--Annex/Branch.hs6
1 files changed, 1 insertions, 5 deletions
diff --git a/Annex/Branch.hs b/Annex/Branch.hs
index 37237ec66..44ee69e62 100644
--- a/Annex/Branch.hs
+++ b/Annex/Branch.hs
@@ -43,10 +43,6 @@ fullname = Git.Ref $ "refs/heads/" ++ show name
originname :: Git.Ref
originname = Git.Ref $ "origin/" ++ show name
-{- A separate index file for the branch. -}
-index :: Git.Repo -> FilePath
-index g = gitAnnexDir g </> "index"
-
{- Populates the branch's index file with the current branch contents.
-
- Usually, this is only done when the index doesn't yet exist, and
@@ -62,7 +58,7 @@ withIndex :: Annex a -> Annex a
withIndex = withIndex' False
withIndex' :: Bool -> Annex a -> Annex a
withIndex' bootstrapping a = do
- f <- fromRepo index
+ f <- fromRepo gitAnnexIndex
bracketIO (Git.useIndex f) id $ do
unlessM (liftIO $ doesFileExist f) $ do
unless bootstrapping create