summaryrefslogtreecommitdiff
path: root/Git/FilePath.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Git/FilePath.hs')
-rw-r--r--Git/FilePath.hs7
1 files changed, 4 insertions, 3 deletions
diff --git a/Git/FilePath.hs b/Git/FilePath.hs
index 7e7d86bb4..2085f287b 100644
--- a/Git/FilePath.hs
+++ b/Git/FilePath.hs
@@ -13,7 +13,8 @@
{-# LANGUAGE CPP #-}
module Git.FilePath (
- TopFilePath(..),
+ TopFilePath,
+ getTopFilePath,
fromTopFilePath,
toTopFilePath,
asTopFilePath,
@@ -32,9 +33,9 @@ import qualified System.FilePath.Posix
newtype TopFilePath = TopFilePath { getTopFilePath :: FilePath }
deriving (Show)
-{- Returns an absolute FilePath. -}
+{- Path to a TopFilePath, within the provided git repo. -}
fromTopFilePath :: TopFilePath -> Git.Repo -> FilePath
-fromTopFilePath p repo = absPathFrom (repoPath repo) (getTopFilePath p)
+fromTopFilePath p repo = combine (repoPath repo) (getTopFilePath p)
{- The input FilePath can be absolute, or relative to the CWD. -}
toTopFilePath :: FilePath -> Git.Repo -> IO TopFilePath