* patchset question
@ 2015-10-20 23:21 Alison Schofield
2015-10-20 23:29 ` [Outreachy kernel] " Greg KH
2015-10-21 5:24 ` Julia Lawall
0 siblings, 2 replies; 4+ messages in thread
From: Alison Schofield @ 2015-10-20 23:21 UTC (permalink / raw)
To: outreachy-kernel
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Outreachy kernel] patchset question
2015-10-20 23:21 patchset question Alison Schofield
@ 2015-10-20 23:29 ` Greg KH
2015-10-21 5:24 ` Julia Lawall
1 sibling, 0 replies; 4+ messages in thread
From: Greg KH @ 2015-10-20 23:29 UTC (permalink / raw)
To: Alison Schofield; +Cc: outreachy-kernel
On Tue, Oct 20, 2015 at 04:21:50PM -0700, Alison Schofield wrote:
>
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Outreachy kernel] patchset question
2015-10-20 23:21 patchset question Alison Schofield
2015-10-20 23:29 ` [Outreachy kernel] " Greg KH
@ 2015-10-21 5:24 ` Julia Lawall
2015-10-21 17:18 ` Alison Schofield
1 sibling, 1 reply; 4+ messages in thread
From: Julia Lawall @ 2015-10-21 5:24 UTC (permalink / raw)
To: Alison Schofield; +Cc: outreachy-kernel
On Tue, 20 Oct 2015, Alison Schofield wrote:
>
> 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.
I still don't understand why this methodology would cause code to move
from above to below a comment.
julia
>
> Thanks!
> alison
>
>
> --
> 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 outreachy-kernel+unsubscribe@googlegroups.com.
> To post to this group, send email to outreachy-kernel@googlegroups.com.
> 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.
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Outreachy kernel] patchset question
2015-10-21 5:24 ` Julia Lawall
@ 2015-10-21 17:18 ` Alison Schofield
0 siblings, 0 replies; 4+ messages in thread
From: Alison Schofield @ 2015-10-21 17:18 UTC (permalink / raw)
To: Julia Lawall; +Cc: outreachy-kernel
On Wed, Oct 21, 2015 at 07:24:15AM +0200, Julia Lawall wrote:
> On Tue, 20 Oct 2015, Alison Schofield wrote:
>
> >
> > 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.
>
> 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
> >
> > Thanks!
> > alison
> >
> >
> > --
> > 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 outreachy-kernel+unsubscribe@googlegroups.com.
> > To post to this group, send email to outreachy-kernel@googlegroups.com.
> > 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.
> >
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-10-21 17:18 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-20 23:21 patchset question Alison Schofield
2015-10-20 23:29 ` [Outreachy kernel] " Greg KH
2015-10-21 5:24 ` Julia Lawall
2015-10-21 17:18 ` Alison Schofield
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.