Hacker News new | past | comments | ask | show | jobs | submit login

I want to make sure I capture your feedback correctly, so let me know if this doesn't help: we recently released the ability to change your base branch on a PR. https://github.com/blog/2224-change-the-base-branch-of-a-pul...

Let me know if that helps!




Here's an example. It's meant to illustrate 2 developers working on a feature branch based on master and one pulls their code in before the other.

https://github.com/jparmstrong/gittest/pull/3/files

- Two feature branches were created based on master at the same time.

- Branch1: committed a change to readme and it's pulled into master via PR.

- Branch2: committed a change to readme, raised a pull request (PR#3), and the diff doesn't show the line that was added with the branch1 pull request.

In this example, the PR is telling me there's a conflict and I need to merge master with the PR branch (this is good). What it doesn't tell me is where the conflict is.

Solution, merge the base branch into the interim PR branch. The result will show you the conflict and properly represents what would happen if this PR is accepted. (Bitbucket does this)

Thanks for following up.

gist of merge master example output: https://gist.github.com/jparmstrong/07cab1a566c5c1495d7c8e07...


Got it - very helpful. Thanks for clarifying! I've copied this verbatim and sent across to our Platform team.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: