Skip to content

Commit 9efe5e3

Browse files
committed
DOC: minor wording changes
1 parent 92f4006 commit 9efe5e3

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

doc/devel/gitwash/development_workflow.rst

+15-12
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ Rebasing a Pull Request (PR)
150150
When working on a PR, changes may occur in the parent branch (usually master).
151151
This can lead to conflict with changes in your branch. The conflicts can be
152152
trivial: for example both the parent branch and your branch add an entry to
153-
the top of `CHANGELOG`. Git can not unambiguously tell what to with both
153+
the top of `CHANGELOG`. Git can not unambiguously tell what to do with both
154154
changes (should one go above the other? if so, which order? should it try to
155155
merge them?) so it declares the branches can not be merged
156156
cleanly. GitHub can only automatically merge PR without conflicts, so you will
@@ -206,10 +206,11 @@ and git will then give a bunch of feed back::
206206
If you prefer to skip this patch, run "git rebase --skip" instead.
207207
To check out the original branch and stop rebasing, run "git rebase --abort".
208208

209-
A number of commits could be cleanly applied to
210-
the tip of `matplotlib/master`. However, git may eventually hit a commit
211-
that had conflicts: in the example above, this happens in the file
212-
`lib/matplotlib/backends/backend_gtk3.py`). For more verbose information run ::
209+
We see that a number of commits could be cleanly applied to the tip of
210+
`matplotlib/master`. However, git may eventually hit a commit that
211+
had conflicts: in the example above, this happens in the file
212+
`lib/matplotlib/backends/backend_gtk3.py`). For more verbose
213+
information run ::
213214

214215
$ git status
215216

@@ -226,9 +227,10 @@ that had conflicts: in the example above, this happens in the file
226227

227228
no changes added to commit (use "git add" and/or "git commit -a")
228229

229-
This tells you exactly where the conflict is and provides some advice
230-
on how to proceed. Opening up the file in question, you will see
231-
blocks that look something like this::
230+
This tells you exactly where the conflict (caused by the target branch
231+
and your commits modifying the same lines of code) is and provides
232+
some advice on how to proceed. Opening up the file in question, you
233+
will see blocks that look something like this::
232234

233235
<<<<<<< HEAD
234236
=======
@@ -237,10 +239,11 @@ blocks that look something like this::
237239

238240
The block of code between `<<<<<<<` and `=======` is the code on the
239241
target branch (in this case nothing) and the code between `=======`
240-
and `>>>>>>>` is the code on your branch. The rest of the code is the
241-
same between the two branches. You need to determine how to resolve the
242-
conflict (in this case, the code on HEAD is correct). Once you have
243-
resolved all the conflicts, `add` the file to the index::
242+
and `>>>>>>>` is the code in the commit you are trying to rebase. The
243+
rest of the code is either the same or the diff can be unambiguously
244+
applied. You need to determine how to resolve the conflict (in this
245+
case, the code on HEAD is correct). Once you have resolved all the
246+
conflicts, `add` the file to the index::
244247

245248
$ git add lib/matplotlib/backends/backend_gtk3.py
246249

0 commit comments

Comments
 (0)