I was missing a small, let's say feature, in the current bitcoin-qt version. So I decided to implement this by myself.
As I never contributed to an OSS before I did some research on how to do that correctly.
Starting point was the CONTRIBUTION document from the bitcoin repository
https://github.com/bitcoin/bitcoin/blob/master/CONTRIBUTING.md.
My missing knowledge there was basically the correct use of git / github with branches, remote repositories, merging and pull requests.
I learned about that and I'm quite confident that I understood all those stuff.
I already did
- Fork the bitcoin/bitcoin repository to my github account
done on github.com - Frequently created pull requests from bitcoin/bitcoin to my forked repository to stay up to date
done on github.com by browsing to bitcoin/bitcoin repository -> clicked "New Pull request" -> clicked compare across forks -> changed the "Base fork" to my repository -> created the pull request and merged it - cloned my forked repository to my build environment
$ git clone https://github.com//bitcoin.git - created a topic branch
$ git checkout -b - made my changes
- commited my changes and pushed the local topic branch to my forked repository
$ git commit
$ git push -u origin
Now comes the part where I'm uncertain if I did everything correct or if I'm missing something.
On github I browsed to my bitcoin fork, selected my pushed topic branch and clicked the "New Pull request" button.
There I see the comparison from bitcoin/bitcoin to my_fork/topic_branch. The suggested title for the pull request by github is my last commit message from my topic branch. So far so good.
But I expected to see only my changes I made within the topic branch, but additionally I also see all the changes from my previously pull requests from bitcoin/bitcoin which I merged to my master branch.
Of course I don't want to have those changes in my pull request back to bitcoin/bitcoin.
I did not see anything on github which allow me to select only my last commit to be in the pull request.
What did I miss or how can I create a pull request with only the changes done in the topic branch and not everything I have done in the master branch?
I would appreciate any hints on how to solve this issue.
Thank you in advance.