summaryrefslogtreecommitdiff
path: root/Annex
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-06-06 02:16:21 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-06-06 02:16:21 -0400
commit27cfeca4ea8f2aa326e7d8416401c319133491db (patch)
tree7b2ddb41cc6b543b290aa24c5eecdf42d96c97f5 /Annex
parenta7a729bce4db901a1142b5ef7ab8cab0d1311a66 (diff)
parentf1bd72ea546be705334ba8f6d01d9dcfb0c33cf9 (diff)
Merge branch 'master' into watch
Diffstat (limited to 'Annex')
-rw-r--r--Annex/Branch.hs9
1 files changed, 5 insertions, 4 deletions
diff --git a/Annex/Branch.hs b/Annex/Branch.hs
index 706522f3b..c8d0719b0 100644
--- a/Annex/Branch.hs
+++ b/Annex/Branch.hs
@@ -33,6 +33,7 @@ import qualified Git.Command
import qualified Git.Ref
import qualified Git.Branch
import qualified Git.UnionMerge
+import qualified Git.UpdateIndex
import Git.HashObject
import qualified Git.Index
import Annex.CatFile
@@ -258,8 +259,8 @@ files = withIndexUpdate $ do
- in changes from other branches.
-}
genIndex :: Git.Repo -> IO ()
-genIndex g = Git.UnionMerge.stream_update_index g
- [Git.UnionMerge.ls_tree fullname g]
+genIndex g = Git.UpdateIndex.stream_update_index g
+ [Git.UpdateIndex.ls_tree fullname g]
{- Merges the specified refs into the index.
- Any changes staged in the index will be preserved. -}
@@ -335,13 +336,13 @@ stageJournal = do
g <- gitRepo
withIndex $ liftIO $ do
h <- hashObjectStart g
- Git.UnionMerge.stream_update_index g
+ Git.UpdateIndex.stream_update_index g
[genstream (gitAnnexJournalDir g) h fs]
hashObjectStop h
where
genstream dir h fs streamer = forM_ fs $ \file -> do
let path = dir </> file
sha <- hashFile h path
- _ <- streamer $ Git.UnionMerge.update_index_line
+ _ <- streamer $ Git.UpdateIndex.update_index_line
sha (fileJournal file)
removeFile path