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

Re: git and peer review

From
Ping Yin <pkufranky@gmail.com>
Date
May 5, 2008, 00:52 UTC
Message-ID
<46dff0320805041752t1190534dy3740c88f5380098f@mail.gmail.com>
In-Reply-To
<87k5i9u8f1.fsf@nav-akl-pcn-343.mitacad.com>
On Mon, May 5, 2008 at 4:21 AM, Toby Allsopp <Toby.Allsopp@navman.co.nz> wrote:
Show 44 quoted lines
> On Sat, May 03 2008, Ping Yin wrote:
>
>  > Case 1
>  >     I ask someone to review my patches at my machine. If the review
>  > passes, i have to add Reviewed-by line to each commit and then merge
>  > it to the master branch. However, i find no easy way to add
>  > reviewed-by line. Maybe adding --reviewed-by  option to cherry-pick or
>  > rebase or merge?
>  >
>  > Case 2
>  >    The reviewer is the maintainer, so i ask him to pull and review. So
>  > now it is his turn to add review-by line. But still, how?
>
>  I do something similar using git filter-branch --msg-filter.  I have a
>  little shell script call git-add-checked (our convention is to have a
>  "checked: " line in the commit message):
>
>  --8<---------------cut here---------------start------------->8---
>  #!/bin/sh
>
>  usage() {
>     cat <<EOF
>  Usage: git-add-checked <checker> [<filter-branch options>] <rev-list options>
>  EOF
>  }
>
>  checker="$1"
>  [ -n "$checker" ] || { usage >&2; exit 2; }
>  shift
>
>  set -x
>  git filter-branch --msg-filter "sed '\$a\\
>  \\
>  checked: $checker'" "$@"
>  --8<---------------cut here---------------end--------------->8---
>
>  Then, after getting my changes reviewed, I just do:
>
>  $ git-add-checked joe.bloggs trunk..
>
>  This adds a "checked: joe.bloggs" line at the end of the commit message
>  for all of the commits on the current branch since trunk (which is a
>  remote branch maintained by git-svn).
>
Great, very useful for me. THX.
-- 
Ping Yin
Previous: Toby AllsoppNext: Karl Hasselström
Message 7 of 11 in “git and peer review”
  1. Ping YinMay 3, 2008
  2. Thomas AdamMay 3, 2008
  3. Ping YinMay 3, 2008
  4. Frodo BagginsMay 3, 2008
  5. Ping YinMay 3, 2008
  6. Toby AllsoppMay 4, 2008
  7. Ping YinMay 5, 2008
  8. Karl HasselströmMay 5, 2008
  9. Seth FalconMay 17, 2008
  10. Shawn O. PearceMay 19, 2008
  11. Seth FalconMay 19, 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.