Skip to content

Commit

Permalink
Merge remote-tracking branch 'rmoehn/cherry-pick-cleanup'
Browse files Browse the repository at this point in the history
  • Loading branch information
jdavid committed May 3, 2015
2 parents 8a196f6 + 654e4bf commit e461198
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/merge.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ Cherrypick

.. automethod:: pygit2.Repository.cherrypick

Note that after a successful cherrypick you have to run
:py:meth:`.Repository.state_cleanup` in order to get the repository out
of cherrypicking mode.


Lower-level methods
===================
Expand Down
2 changes: 2 additions & 0 deletions docs/recipes/git-cherry-pick.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ working copy and on-disk index.
cherry.message, tree_id, [basket.target])
del basket # outdated, prevent from accidentally using it
repo.state_cleanup()
----------------------------------------------------------------------
Cherry-picking a commit without a working copy
Expand Down

0 comments on commit e461198

Please sign in to comment.