From fbb11775a3863d97fed94f92fa1009dbd8933aed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2E=20David=20Ib=C3=A1=C3=B1ez?= Date: Sat, 14 Feb 2015 21:27:34 +0100 Subject: [PATCH] Update changelog --- README.rst | 67 ++++++++++++++++++++++++++++++++++++-------------- docs/merge.rst | 9 ++++++- 2 files changed, 57 insertions(+), 19 deletions(-) diff --git a/README.rst b/README.rst index 93899c9..492efe5 100644 --- a/README.rst +++ b/README.rst @@ -28,33 +28,64 @@ Changelog 0.22.1 (not yet released) ------------------------- -- Expose the pygit2.GIT_REPOSITORY_INIT_* constants - `#483 `_ - -- Make pygit work in a frozen environment - `#453 `_ +Diff interface refactoring +`#346 `_ +(in progress): - New ``iter(pygit2.Blame)`` - New ``pygit2.DiffDelta``, ``pygit2.DiffFile`` and ``pygit.DiffLine`` -API changes, translation table:: +- API changes, translation table:: - Hunk => DiffHunk - Patch.old_file_path => Patch.delta.old_file.path - Patch.new_file_path => Patch.delta.new_file.path - Patch.old_id => Patch.delta.old_file.id - Patch.new_id => Patch.delta.new_file.id - Patch.status => Patch.delta.status - Patch.similarity => Patch.delta.similarity - Patch.is_binary => Patch.delta.is_binary - Patch.additions => Patch.line_stats[1] - Patch.deletions => Patch.line_stats[2] - -API changes, more: + Hunk => DiffHunk + Patch.old_file_path => Patch.delta.old_file.path + Patch.new_file_path => Patch.delta.new_file.path + Patch.old_id => Patch.delta.old_file.id + Patch.new_id => Patch.delta.new_file.id + Patch.status => Patch.delta.status + Patch.similarity => Patch.delta.similarity + Patch.is_binary => Patch.delta.is_binary + Patch.additions => Patch.line_stats[1] + Patch.deletions => Patch.line_stats[2] - ``DiffHunk.lines`` is now a list of ``DiffLine`` objects, not tuples +New features: + +- Make pygit work in a frozen environment + `#453 `_ + +- New Repository.expand_id and Repository.ahead_behind + `#448 `_ + +- Repository.write_archive new prefix parameter + `#481 `_ + +- New Repository.merge_trees() + `#489 `_ + +- New Repository.cherrypick() + `#492 `_ + +Bugs fixed: + +- Safer handling of string arrays + `#477 `_ + `#487 `_ + +- Repository.write_archive fix handling of symlinks + `#480 `_ + +Other: + +- Documentation improvements + `#448 `_ + `#491 `_ + +- Expose the pygit2.GIT_REPOSITORY_INIT_* constants + `#483 `_ + 0.22.0 (2015-01-16) ------------------- diff --git a/docs/merge.rst b/docs/merge.rst index d8c2139..b1c688b 100644 --- a/docs/merge.rst +++ b/docs/merge.rst @@ -1,5 +1,5 @@ ********************************************************************** -Merge +Merge & Cherrypick ********************************************************************** .. contents:: @@ -34,6 +34,13 @@ can create a commit with these two parents. >>> new_commit = repo.create_commit('HEAD', user, user, tree, [repo.head.target, other_branch_tip]) + +Cherrypick +=================== + +.. automethod:: pygit2.Repository.cherrypick + + Lower-level methods ===================