Skip to content
Snippets Groups Projects
Unverified Commit 9d7e98d9 authored by Vincent Hanquez's avatar Vincent Hanquez Committed by GitHub
Browse files

Merge pull request #10 from Luabee/patch-1

Fixed withCurrentRepo examples
parents 0e47ae7e 8903b08d
No related branches found
No related tags found
No related merge requests found
...@@ -581,8 +581,8 @@ deleteFile path = do ...@@ -581,8 +581,8 @@ deleteFile path = do
-- --
-- Example: -- Example:
-- --
-- > withCurrentRepo $ -- > withCurrentRepo $ do
-- > (r, ()) <- withNewCommit person Nothing $ do -- > (r, ()) <- withNewCommit person (Nothing :: Maybe (Ref SHA1)) $ do
-- > setMessage "inital commit" -- > setMessage "inital commit"
-- > setFile ["README.md"] "# My awesome project\n\nthis is a new project\n" -- > setFile ["README.md"] "# My awesome project\n\nthis is a new project\n"
-- > branchWrite "master" r -- > branchWrite "master" r
...@@ -592,7 +592,7 @@ deleteFile path = do ...@@ -592,7 +592,7 @@ deleteFile path = do
-- parent is already set to the Reference associated to the revision. -- 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. -- You can, change the parents if you wish to erase, or replace, this value.
-- --
-- > withCurrentRepo $ -- > withCurrentRepo $ do
-- > readmeContent <- withCommit (Just "master") $ getFile ["README.md"] -- > readmeContent <- withCommit (Just "master") $ getFile ["README.md"]
-- > (r, ()) <- withNewCommit person (Just "master") $ do -- > (r, ()) <- withNewCommit person (Just "master") $ do
-- > setMessage "update the README" -- > 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