Simon (
swaldman) wrote in
dw_dev_training2012-11-22 10:05 am
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
![[site community profile]](https://www.dreamwidth.org/img/comm_staff.png)
Entry tags:
Git question
Scenario:
- I worked on bug A and submitted a pull request. That hasn't yet been accepted.
- I want to work on bug B, which expands upon A and changes the same bits of code.
- Since A has not yet been accepted, its changes are not yet in the develop branch. However, I still have A's branch available to me.
Is there a way in which I can base B on A and (assuming that A is accepted without changes) have it all merge nicely in the end? Or do I need to wait for A to be merged into develop first?
Also, if there is a way, is there going to be a big problem if A then *isn't* accepted / requires changes / whatever?
Thanks :-)
- I worked on bug A and submitted a pull request. That hasn't yet been accepted.
- I want to work on bug B, which expands upon A and changes the same bits of code.
- Since A has not yet been accepted, its changes are not yet in the develop branch. However, I still have A's branch available to me.
Is there a way in which I can base B on A and (assuming that A is accepted without changes) have it all merge nicely in the end? Or do I need to wait for A to be merged into develop first?
Also, if there is a way, is there going to be a big problem if A then *isn't* accepted / requires changes / whatever?
Thanks :-)
no subject
no subject
no subject
no subject
no subject
no subject
Although, if you comment on A, referring to B, B will end up having a nice big section pointing back to A, which makes it harder for a committer to accidentally commit B before A. (Harder even than a note because the section is nice and big)
AS an example, we sometimes have style-related commits that need to modify both dw-free and dw-nonfree. so if you look at the pull request in dw-nonfree (B), it contains this text:
dreamwidth/dw-free#147
If you then go to the pull request in dw-free (A), you'll see a nice big reminder to check dw-nonfree as well.
no subject