diff options
author | Joey Hess <joey@kitenet.net> | 2011-12-11 14:14:28 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2011-12-11 14:14:28 -0400 |
commit | 0ba4b1de18acf9e2318da6c8e7d80ce4bb216850 (patch) | |
tree | a7dec70d53ac0c9d8b562e573821f5d62175cbfe /Locations.hs | |
parent | bf6a3b757adebe92b330c4216fb32fbf1a6d64d2 (diff) |
move a file location to Locations.hs
Diffstat (limited to 'Locations.hs')
-rw-r--r-- | Locations.hs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Locations.hs b/Locations.hs index f7784a56d..fdb823284 100644 --- a/Locations.hs +++ b/Locations.hs @@ -20,6 +20,7 @@ module Locations ( gitAnnexUnusedLog, gitAnnexJournalDir, gitAnnexJournalLock, + gitAnnexIndex, isLinkToAnnex, annexHashes, hashDirMixed, @@ -131,6 +132,10 @@ gitAnnexJournalDir r = addTrailingPathSeparator $ gitAnnexDir r </> "journal" gitAnnexJournalLock :: Git.Repo -> FilePath gitAnnexJournalLock r = gitAnnexDir r </> "journal.lck" +{- .git/annex/index is used to stage changes to the git-annex branch -} +gitAnnexIndex :: Git.Repo -> FilePath +gitAnnexIndex r = gitAnnexDir r </> "index" + {- Checks a symlink target to see if it appears to point to annexed content. -} isLinkToAnnex :: FilePath -> Bool isLinkToAnnex s = ("/.git/" ++ objectDir) `isInfixOf` s |