From 23e765b67c38a9f02b3b5152e7e123819bb696de Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 23 Jun 2011 09:56:04 -0400 Subject: update re git-annex branch direct modification --- Locations.hs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Locations.hs') diff --git a/Locations.hs b/Locations.hs index df4957f3e..f93b0cc50 100644 --- a/Locations.hs +++ b/Locations.hs @@ -105,6 +105,11 @@ gitAnnexBadLocation r key = gitAnnexBadDir r keyFile key gitAnnexUnusedLog :: FilePath -> Git.Repo -> FilePath gitAnnexUnusedLog prefix r = gitAnnexDir r (prefix ++ "unused") +{- .git/annex/journal/ is used to journal changes made to the git-annex + - branch -} +gitAnnexJournalDir :: Git.Repo -> FilePath +gitAnnexJournalDir r = addTrailingPathSeparator $ gitAnnexDir r "journal" + {- Checks a symlink target to see if it appears to point to annexed content. -} isLinkToAnnex :: FilePath -> Bool isLinkToAnnex s = ("/.git/" ++ objectDir) `isInfixOf` s -- cgit v1.2.3