1
1
mirror of https://github.com/github/semantic.git synced 2024-11-24 08:54:07 +03:00
This commit is contained in:
joshvera 2016-01-14 13:52:26 -05:00
parent 2c3ff936b7
commit 1e094aba90

View File

@ -60,6 +60,7 @@ main = do
where opts = info (helper <*> arguments)
(fullDesc <> progDesc "Diff some things" <> header "semantic-diff - diff semantically")
-- Returns a file source given an absolute repo path, a relative file path, and the sha to look up.
fetchFromGitRepo :: FilePath -> FilePath -> String -> IO (Source Char)
fetchFromGitRepo repoPath path sha = join $ withRepository lgFactory repoPath $ do
object <- unTagged <$> parseObjOid (T.pack sha)