]> git.ozlabs.org Git - patchwork/blob - tools/patchwork-update-commits
tools: add simple patchwork-update-commits script
[patchwork] / tools / patchwork-update-commits
1 #!/bin/bash
2
3 pwpath=apps/patchwork
4
5 if [ "$#" -lt 1 ]
6 then
7         echo "usage: $0 <revspec>" >&2
8         exit 1
9 fi
10
11 git rev-list --reverse "$@" |
12 while read commit
13 do
14         hash=$(git show "$commit" | python $pwpath/parser.py -#)
15         $pwpath/bin/pwclient -s Accepted -c "$commit" -h "$hash"
16 done