refactor and function name cleanup

(oops, I had a calcMerge and a calc_merge!)
This commit is contained in:
Joey Hess 2012-06-08 00:29:39 -04:00
parent 7d78cbf97c
commit d45a9a7831
5 changed files with 58 additions and 46 deletions

View file

@ -19,9 +19,6 @@ import qualified Annex.Queue
import qualified Command.Add
import qualified Git.Command
import qualified Git.UpdateIndex
import Git.HashObject
import Git.Types
import Git.FilePath
import qualified Backend
import Annex.Content
@ -140,9 +137,6 @@ onErr = warning
{- Adds a symlink to the index, without ever accessing the actual symlink
- on disk. -}
stageSymlink :: FilePath -> String -> Annex ()
stageSymlink file linktext = do
line <- Git.UpdateIndex.update_index_line
<$> inRepo (hashObject BlobObject linktext)
<*> pure SymlinkBlob
<*> inRepo (toTopFilePath file)
Annex.Queue.addUpdateIndex $ \streamer -> streamer line
stageSymlink file linktext =
Annex.Queue.addUpdateIndex =<<
inRepo (Git.UpdateIndex.stageSymlink file linktext)