What to do with branches after submitting patches?
Hi,
I just got into kernel development and currently doing some patching of the usb divers for coding style adaptions and so on.
My current workflow is:
- get latest torvalds master
- merge local master with fast forward to torvalds/master
- create new branch, say "usb-core-foobar-cleanup"
- patch the stuff, write commits
- git format-patch master...usb-core-foobar-cleanup
- git send-email ...
So what to do with the branches now? I think I should keep them until the patches are merged, okay. And then? delete them? I mean, I'm still the author of the patches, and they will be included in history some time (as soon as the next release comes out they will be in torvalds/master).
I just submitted my second patch series to the lkml, and now I have to remember which patch series was the result of which branch... if I submit one or two more patch series, I have to remember the relations between patch series and branches until they are merged, yeah?
Or is there something wrong in my workflow?
Is it possible to use a github repository and just send a "please pull from git at github.com...." message to the kernel mailinglist, or will I be beaten for this?
Thanks in advance for your answers!
Signature · 13 lines
Mit freundlichen Gr??en, Kind regards, Matthias Beyer Proudly sent with mutt. Happily signed with gnupg. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: not available Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20131011/f8ea7e44/attachment.bin
Hi,
Le 11.10.2013 00:23, Matthias Beyer a ?crit?:
Quoted 19 lines
I just got into kernel development and currently doing some patching of the usb divers for coding style adaptions and so on.
My current workflow is:
- get latest torvalds master
- merge local master with fast forward to torvalds/master
- create new branch, say "usb-core-foobar-cleanup"
- patch the stuff, write commits
- git format-patch master...usb-core-foobar-cleanup
- git send-email ...So what to do with the branches now? I think I should keep them until the patches are merged, okay. And then? delete them? I mean, I'm still the author of the patches, and they will be included in history some time (as soon as the next release comes out they will be in torvalds/master).
Quoted 7 lines
I just submitted my second patch series to the lkml, and now I have to remember which patch series was the result of which branch... if I submit one or two more patch series, I have to remember the relations between patch series and branches until they are merged, yeah?
Or is there something wrong in my workflow?
I usually put the name of the parent of my local branch, eg. topic branch,
for example
git rebase next-20131010
git branch -m topic-branch-next-20131010
Once the patchset is sent, I keep rebasing the branch until the patchset is empty
git rebase --onto next-20131011 next-20131010 git branch -m topic-branch-next-20131011
Once in a while, before the merge window, I'm sending again the patchset,
with an update changelog.
Note that, if you're following Linus tree instead, you don't need to rebase --onto. Just do "simple" rebase.
Quoted 3 lines
Is it possible to use a github repository and just send a "please pull from git at github.com...." message to the kernel mailinglist, or will I be beaten for this?
If you're going to publish your topic branches, *DON'T EVER REBASE THEM* without good reason and clear explanation.
So you will probably end up creating multiple topic branches, one for each
parent version you're going to target.
But you probably don't have to publish your branches if you're work is limited
to a dozen of patches. With more patches, you might ask the maintainer.
Regards.
Signature · 2 lines
Yann Droneaud OPTEYA
Hi Matthias,
Quoted 14 lines · Matthias Beyer
Hi,
I just got into kernel development and currently doing some patching of the usb divers for coding style adaptions and so on.
My current workflow is:
- get latest torvalds master
- merge local master with fast forward to torvalds/master
- create new branch, say "usb-core-foobar-cleanup"
- patch the stuff, write commits
- git format-patch master...usb-core-foobar-cleanup
- git send-email ...
Quoted 6 lines
So what to do with the branches now? I think I should keep them until the patches are merged, okay. And then? delete them? I mean, I'm still the author of the patches, and they will be included in history some time (as soon as the next release comes out they will be in torvalds/master).
Yeah looks ok but , what you can do is USB is subsystem it should be maintained by some person, which he has his own repo somewhere in kernel.org clone his repo and do what your changes what you meant and send the patches via send-email. You need to maintain your branch until your patches are accepted because there might be some review comments so you got to fix them and repost the patches. You can also create your own repo on github and push that branch until then.
Quoted 5 lines
I just submitted my second patch series to the lkml, and now I have to remember which patch series was the result of which branch... if I submit one or two more patch series, I have to remember the relations between patch series and branches until they are merged, yeah?
Yes
Quoted 6 lines
Or is there something wrong in my workflow?
Is it possible to use a github repository and just send a "please pull from git at github.com...." message to the kernel mailinglist, or will I be beaten for this?
You cannot directly send a pull request until the patches are reviewed, once the the driver maintainer and other folks in the ML are happy, the maintainer will pull your patches and get it merged in mainline kernel.
Regards,
--Prabhakar Lad
Quoted 9 lines
Quoted 5 lines
Is it possible to use a github repository and just send a "please pull from git at github.com...." message to the kernel mailinglist, or will I be beaten for this?
You cannot directly send a pull request until the patches are reviewed, once the the driver maintainer and other folks in the ML are happy, the maintainer will pull your patches and get it merged in mainline kernel.
If using github, I think send pull requests is a way to initiate a review. It does not mean that that pull request will be merged as-is. As you point out, if there are review comments, the reviewee will address those comments and send another pull request till the reviewer is satisfied. After that the reviewer just has to 'merge' the latest pull request.
This, of course, is the github flow, not a general workflow for reviews.
HTH,
-mandeep
Quoted 9 lines
Regards,
--Prabhakar Lad_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20131011/632d9561/attachment.html
Quoted 11 lines · Mandeep Sandhu
Quoted 9 lines
Quoted 6 lines
Is it possible to use a github repository and just send a "please pull from git at github.com...." message to the kernel mailinglist, or will I be beaten for this?
You cannot directly send a pull request until the patches are reviewed, once the the driver maintainer and other folks in the ML are happy, the maintainer will pull your patches and get it merged in mainline kernel.
Quoted 6 lines
If using github, I think send pull requests is a way to initiate a review. It does not mean that that pull request will be merged as-is. As you point out, if there are review comments, the reviewee will address those comments and send another pull request till the reviewer is satisfied. After that the reviewer just has to 'merge' the latest pull request.
For reviewing patches on the mailing list you don't send pull request, ! patches needs
to be sent to ML to be reviewed !.
For example look at [1] which is pull request to Linus. The pull request will just have the patch description(it doesnt have the diff), and the link to pull the patches from. People dont have time to go to your link and review the
patches there and reply on your pull request.
"So you need to send patches to ML for review and not pull request"
Thanks,
--Prabhakar Lad
Quoted 24 lines · Prabhakar Lad
Quoted 11 lines · Mandeep Sandhu
Quoted 9 lines
Quoted 6 lines
Is it possible to use a github repository and just send a "please pull from git at github.com...." message to the kernel mailinglist, or will I be beaten for this?
You cannot directly send a pull request until the patches are reviewed, once the the driver maintainer and other folks in the ML are happy, the maintainer will pull your patches and get it merged in mainline kernel.
Quoted 6 lines
If using github, I think send pull requests is a way to initiate a review. It does not mean that that pull request will be merged as-is. As you point out, if there are review comments, the reviewee will address those comments and send another pull request till the reviewer is satisfied. After that the reviewer just has to 'merge' the latest pull request.
For reviewing patches on the mailing list you don't send pull request, ! patches needs
to be sent to ML to be reviewed !.
Quoted 7 lines
For example look at [1] which is pull request to Linus. The pull request will just have the patch description(it doesnt have the diff), and the link to pull the patches from. People dont have time to go to your link and review the
patches there and reply on your pull request.
"So you need to send patches to ML for review and not pull request"
Ahh missed the link.
[1] http://lkml.indiana.edu/hypermail/linux/kernel/1307.0/02639.html
Thanks,
--Prabhakar Lad
Quoted 28 lines · Prabhakar Lad
Quoted 5 lines · Prabhakar Lad
Quoted 3 lines · Mandeep Sandhu
Quoted 3 lines
Quoted 3 lines
Is it possible to use a github repository and just send a "please
pull
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
from git at github.com...." message to the kernel mailinglist, or will
I
Quoted 8 lines
Quoted 8 lines
Quoted 5 lines
Quoted 2 lines
be beaten for this?
You cannot directly send a pull request until the patches are reviewed, once the the driver maintainer and other folks in the ML are happy, the maintainer will pull your patches and get it merged in mainline kernel.
If using github, I think send pull requests is a way to initiate a
review.
Quoted 1 line
Quoted 1 line
It does not mean that that pull request will be merged as-is. As you
point
Quoted 1 line
Quoted 1 line
out, if there are review comments, the reviewee will address those
comments
Quoted 1 line
Quoted 1 line
and send another pull request till the reviewer is satisfied. After
that the
Quoted 3 lines
Quoted 2 lines
reviewer just has to 'merge' the latest pull request.
Quoted 12 lines
Quoted 5 lines
For reviewing patches on the mailing list you don't send pull request, ! patches needs
to be sent to ML to be reviewed !.For example look at [1] which is pull request to Linus. The pull request
will
Quoted 5 lines
just have the patch description(it doesnt have the diff), and the link to pull the patches from. People dont have time to go to your link and review the
patches there and reply on your pull request.
"So you need to send patches to ML for review and not pull request"
As I said above, this is the "github" workflow, not what Linux development might be using for handling contributions. Submitting patches to LKML might be the way it's done for Linux. I was merely pointing to the fact that if using github, pull requests are sufficient for doing reviews.
Hope that clarifies things.
-mandeep
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20131011/9e6481da/attachment.html
Quoted 4 lines · Matthias Beyer
Hi,
I just got into kernel development and currently doing some patching of the usb divers for coding style adaptions and so on.
Has Greg KH said he will accept these? Minor coding style patches are often not wanted since they break other peoples patches.
The best method is to have a patchset that cleans the coding style of a driver then has at least one true fix/improvement.
Quoted 9 lines
My current workflow is:
- get latest torvalds master
- merge local master with fast forward to torvalds/master
- create new branch, say "usb-core-foobar-cleanup"
- patch the stuff, write commits
- git format-patch master...usb-core-foobar-cleanup
- git send-email ...
Quoted 7 lines
So what to do with the branches now? I think I should keep them until the patches are merged, okay. And then? delete them? I mean, I'm still the author of the patches, and they will be included in history some time (as soon as the next release comes out they will be in torvalds/master).
I just submitted my second patch series to the lkml
Many subsystems like usb have their own mailinglist. An email to lkml will likely be ignored by the maintainer you care about. Each discrete patch needs to go to the right mailinglist if you want it to be accepted.
Try to keep your patchsets to one subsystem at a time.
Quoted 10 lines
, and now I have to
remember which patch series was the result of which branch... if I submit one or two more patch series, I have to remember the relations between patch series and branches until they are merged, yeah?Or is there something wrong in my workflow?
Is it possible to use a github repository and just send a "please pull from git at github.com...." message to the kernel mailinglist, or will I be beaten for this?
If you have a large patchset that needs testing, then ALSO providing a simple way for testers to pull your patchset is a great thing, but the review will take place the normal way. So in your 0/xx email can say how to pull your patchset for testing.
Greg (not KG)
Signature · 1 line
Sent from my Android phone with K-9 Mail. Please excuse my brevity.