Re: [PATCH] rebase: pass --signoff option to git am
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Dec 6, 2010, 17:28 UTC
- Message-ID
- <20101206172847.GA6272@burratino>
- In-Reply-To
- <AANLkTinnn_QnBJ8AZT9ZB+ZHVRDZV0tDret=YQeyfa01@mail.gmail.com>
Giuseppe Bilotta wrote:
> For what it's worth, somebody on #git just asked how to signoff a > bunch of patches. The answer was to rebase -i and sign off each one of > them.
How I would do it in existing git:
git branch oldhead git reset --keep base git log --oneline --graph HEAD..oldhead; # the right patches? git cherry-pick -s HEAD..oldhead git diff oldhead
Or without multiple-cherry-pick, maybe:
git branch oldhead git reset --keep base git format-patch -k --stdout HEAD..oldhead >series git am -s -3 -i series; # the right patches? git diff oldhead
No opinion on the automatic-signoff-in-rebase here.