Skip to content
Snippets Groups Projects
Unverified Commit 8903b08d authored by Bob Blackmon's avatar Bob Blackmon Committed by GitHub
Browse files

Fixed withCurrentRepo examples

The previous versions had two major errors: One parse error and one ambiguous type error.
parent 326a7abd
No related branches found
No related tags found
No related merge requests found
......@@ -581,8 +581,8 @@ deleteFile path = do
--
-- Example:
--
-- > withCurrentRepo $
-- > (r, ()) <- withNewCommit person Nothing $ do
-- > withCurrentRepo $ do
-- > (r, ()) <- withNewCommit person (Nothing :: Maybe (Ref SHA1)) $ do
-- > setMessage "inital commit"
-- > setFile ["README.md"] "# My awesome project\n\nthis is a new project\n"
-- > branchWrite "master" r
......@@ -592,7 +592,7 @@ deleteFile path = do
-- parent is already set to the Reference associated to the revision.
-- You can, change the parents if you wish to erase, or replace, this value.
--
-- > withCurrentRepo $
-- > withCurrentRepo $ do
-- > readmeContent <- withCommit (Just "master") $ getFile ["README.md"]
-- > (r, ()) <- withNewCommit person (Just "master") $ do
-- > setMessage "update the README"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment