git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Adding Reviewed-by/Tested-by tags to other peoples commits

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Oct 11, 2008, 10:58 UTC
Message-ID
<alpine.DEB.1.00.0810111254240.22125@pacific.mpi-cbg.de.mpi-cbg.de>
In-Reply-To
<20081011074604.GA23883@sigill.intra.peff.net>
Hi,
On Sat, 11 Oct 2008, Jeff King wrote:
Show 12 quoted lines
> On Sat, Oct 11, 2008 at 07:37:04AM +0100, Alex Bennee wrote:
> 
> > I've just tested/reviewed a patch of someone elses and I want to 
> > forward it on the appropriate mailing list. I gather for Linux you 
> > just add the appropriate tags to the commit. Does git offer a shortcut 
> > for doing this or do you have to do a reset HEAD^ and re-commit with a 
> > copy&pasted and modified commit message?
> 
> Try "git commit --amend" to edit the commit message. There's no 
> automatic way of adding acked-by or tested-by tags with git; most people 
> who do those things often would probably configure their editor to make 
> it easier.
Of course, you could also automate it with a script:
-- snip --
GIT_EDITOR='sh -c "perl -pi.bak -e s/pick/edit/ \"$1\""' \
git rebase -i HEAD~2
while test -d .git/rebase-merge
do
 GIT_EDITOR='sh -c "echo \"Reviewed-by: Mini Me <mi@ni.me>\" >> \"$1\""' \
 git commit --amend &&
 git rebase --continue ||
 break
done
-- snap --
(Of course you would make HEAD~2 a parameter...)

BTW what happened with the "amend" patches to rebase -i? AFAIR Peff or MadCoder (or was it j6t?) had patches to teach rebase -i the "amend" command, which would not fall back to the command line just to fix a typo in a commit message... I would like to have that.

Hth, Dscho

Previous: Jeff KingNext: Junio C Hamano
Message 3 of 8 in “Adding Reviewed-by/Tested-by tags to other peoples commits”
  1. Alex BenneeOct 11, 2008
  2. Jeff KingOct 11, 2008
  3. Johannes SchindelinOct 11, 2008
  4. Junio C HamanoOct 11, 2008
  5. Johannes SchindelinOct 11, 2008
  6. Junio C HamanoOct 11, 2008
  7. Johannes SchindelinOct 11, 2008
  8. Junio C HamanoOct 11, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.