getCommit currently raises an exception
getCommit :: Git -> Ref -> IO Commit + Exception
might be nicer as
getCommit :: Git -> Ref -> IO (Maybe Commit)
getCommit :: Git -> Ref -> IO Commit + Exception
might be nicer as
getCommit :: Git -> Ref -> IO (Maybe Commit)