linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Stupid git question: adding acked-by
@ 2007-12-09  5:21 Jerry Van Baren
  2007-12-09  6:04 ` Geoff Levand
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jerry Van Baren @ 2007-12-09  5:21 UTC (permalink / raw)
  To: linuxppc-dev@ozlabs.org

OK git gurus, this is something I have not figured out: the best way to 
add acked-by (or additional signed-off-by) lines to git patches.

What I'm talking about is when I've applied a patch to my repo and 
published the change on the list and get an "acked-by" back.  By the 
time I get the ack, the acked patch may be several patches deep.  My 
current technique is to reset the repo, edit the patch(es) to add the 
"acked-by" lines, and then re-apply the patches.  PITA and probably the 
stupidest way.

Stacked git should work (effectively does the same thing but more 
gracefully), but I have not gone that route yet.

There must be a better way, if only I could find the right (of 137) 
git-* command...

Hints, please?

Thanks,
gvb

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Stupid git question: adding acked-by
  2007-12-09  5:21 Stupid git question: adding acked-by Jerry Van Baren
@ 2007-12-09  6:04 ` Geoff Levand
  2007-12-09  6:22 ` Grant Likely
  2007-12-09  6:43 ` Stephen Rothwell
  2 siblings, 0 replies; 4+ messages in thread
From: Geoff Levand @ 2007-12-09  6:04 UTC (permalink / raw)
  To: Jerry Van Baren; +Cc: linuxppc-dev@ozlabs.org

On 12/08/2007 09:21 PM, Jerry Van Baren wrote:
> OK git gurus, this is something I have not figured out: the best way to 
> add acked-by (or additional signed-off-by) lines to git patches.
> 
> What I'm talking about is when I've applied a patch to my repo and 
> published the change on the list and get an "acked-by" back.  By the 
> time I get the ack, the acked patch may be several patches deep.  My 
> current technique is to reset the repo, edit the patch(es) to add the 
> "acked-by" lines, and then re-apply the patches.  PITA and probably the 
> stupidest way.
> 
> Stacked git should work (effectively does the same thing but more 
> gracefully), but I have not gone that route yet.
> 
> There must be a better way, if only I could find the right (of 137) 
> git-* command...

I keep patches in a repo.  I just update the patch header and commit.

-Geoff 

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Stupid git question: adding acked-by
  2007-12-09  5:21 Stupid git question: adding acked-by Jerry Van Baren
  2007-12-09  6:04 ` Geoff Levand
@ 2007-12-09  6:22 ` Grant Likely
  2007-12-09  6:43 ` Stephen Rothwell
  2 siblings, 0 replies; 4+ messages in thread
From: Grant Likely @ 2007-12-09  6:22 UTC (permalink / raw)
  To: Jerry Van Baren; +Cc: linuxppc-dev@ozlabs.org

On 12/8/07, Jerry Van Baren <gvb.linuxppc.dev@gmail.com> wrote:
> Stacked git should work (effectively does the same thing but more
> gracefully), but I have not gone that route yet.

This is my preferred solution, but you don't have to do it this way.

>
> There must be a better way, if only I could find the right (of 137)
> git-* command...

Try git-cherry-pick.  Get a list of the SHA-1 patch ids and reset your
branch.  Then cherry pick each patch with the -e flag.  Git will pull
up an editor and let you edit the commit message before applying so
you can add the Acked-by line.

Cheers,
g.

-- 
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
grant.likely@secretlab.ca
(403) 399-0195

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Stupid git question: adding acked-by
  2007-12-09  5:21 Stupid git question: adding acked-by Jerry Van Baren
  2007-12-09  6:04 ` Geoff Levand
  2007-12-09  6:22 ` Grant Likely
@ 2007-12-09  6:43 ` Stephen Rothwell
  2 siblings, 0 replies; 4+ messages in thread
From: Stephen Rothwell @ 2007-12-09  6:43 UTC (permalink / raw)
  To: Jerry Van Baren; +Cc: linuxppc-dev@ozlabs.org

[-- Attachment #1: Type: text/plain, Size: 378 bytes --]

On Sun, 09 Dec 2007 00:21:05 -0500 Jerry Van Baren <gvb.linuxppc.dev@gmail.com> wrote:
>
> OK git gurus, this is something I have not figured out: the best way to 
> add acked-by (or additional signed-off-by) lines to git patches.

Have a look at "git rebase -i"

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-12-09  6:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-09  5:21 Stupid git question: adding acked-by Jerry Van Baren
2007-12-09  6:04 ` Geoff Levand
2007-12-09  6:22 ` Grant Likely
2007-12-09  6:43 ` Stephen Rothwell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).