patchset question
Patchset help needed:
I've changed one file in 5 different ways..all cleanup related. It will be split into 5 patches.
In one branch I used git add -pi followed by commit to incrementally create 5 commits. Each one dependent on the previous. This is easy to grab and build as a patchset because they are all on the same branch.
Is this method OK?
(The alternative is to give each commit it's own branch to keep them independent.)
Searching archives of opw kernel I found reference to the dependent commits, stating it was OK. But that may be outdated, so checking in.
Thanks!
alison
Quoted 11 lines · Alison Schofield
Patchset help needed:
I've changed one file in 5 different ways..all cleanup related. It will be split into 5 patches.
In one branch I used git add -pi followed by commit to incrementally create 5 commits. Each one dependent on the previous. This is easy to grab and build as a patchset because they are all on the same branch.
Is this method OK?
Yes it is, and in fact, it's the preferred method, nice job.
greg k-h
Quoted 10 lines · Alison Schofield
Patchset help needed:
I've changed one file in 5 different ways..all cleanup related. It will be split into 5 patches.
In one branch I used git add -pi followed by commit to incrementally create 5 commits. Each one dependent on the previous. This is easy to grab and build as a patchset because they are all on the same branch.
Quoted 7 lines
Is this method OK?
(The alternative is to give each commit it's own branch to keep them independent.)
Searching archives of opw kernel I found reference to the dependent commits, stating it was OK. But that may be outdated, so checking in.
I still don't understand why this methodology would cause code to move from above to below a comment.
julia
Quoted 12 lines
Thanks!
alisonSignature · 5 lines
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20151020232149.GA13649%40Ubuntu-D830. For more options, visit https://groups.google.com/d/optout.
Quoted 17 lines · Julia Lawall
Quoted 15 lines · Alison Schofield
Patchset help needed:
I've changed one file in 5 different ways..all cleanup related. It will be split into 5 patches.
In one branch I used git add -pi followed by commit to incrementally create 5 commits. Each one dependent on the previous. This is easy to grab and build as a patchset because they are all on the same branch.
Is this method OK?
(The alternative is to give each commit it's own branch to keep them independent.)
Quoted 8 lines
Quoted 2 lines
Searching archives of opw kernel I found reference to the dependent commits, stating it was OK. But that may be outdated, so checking in.
I still don't understand why this methodology would cause code to move from above to below a comment.
julia
You are right Julia. Good methodology, but error in implementation ;)
In reviewing the set of diffs for version 1, I do find that the comment moved when I picked the comments out for their patch. The bad move is visible in the comments patch and in the patch where you noticed it in the diff.
It wasn't intentional. It happened during the partial add. In this 'hunk', as git add calls it, when the changes are too close together to be hunks, or to split, you get popped into vim to manually edit. That has to be where I made the mistake.
The partial add is a nice feature. I hope to try it again with these lessons learned.
alisons
Quoted 12 lines
Quoted 12 lines
Thanks!
alisonSignature · 5 lines
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20151020232149.GA13649%40Ubuntu-D830. For more options, visit https://groups.google.com/d/optout.