Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 66f8c26

Browse files
authored
Clarifying backports documentation
I'm so very confused so trying to demystify how this works. @QuLogic
1 parent db61667 commit 66f8c26

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

doc/devel/coding_guide.rst

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,12 @@ Backports
9191
When doing backports please include the branch you backported the
9292
commit to along with the SHA in a comment on the original PR.
9393

94-
Assuming we have ``matplotlib`` as a read-only remote to the
95-
matplotlib/matplotlib repo and ``DANGER`` as a read/write remote to
96-
the matplotlib/matplotlib repo, we do a backport from master to 2.x.
94+
We do a backport from master to 2.x. assuming:
95+
96+
* ``matplotlib`` is a read-only remote branch of the matplotlib/matplotlib repo
97+
98+
* ``DANGER`` is a read/write remote branch of the matplotlib/matplotlib repo
99+
97100
The ``TARGET_SHA`` is the hash of the merge commit you would like to
98101
backport. This can be read off of the github PR page (in the UI with
99102
the merge notification) or through the git CLI tools.::
@@ -102,7 +105,7 @@ the merge notification) or through the git CLI tools.::
102105
git checkout v2.x
103106
git merge --ff-only matplotlib/v2.x
104107
git cherry-pick -m 1 TARGET_SHA
105-
gitk # to look at it
108+
git log --graph --decorate # to look at it
106109
# local tests? (use your judgment)
107110
git push DANGER v2.x
108111
# leave a comment on PR noting sha of the resulting commit

0 commit comments

Comments
 (0)