patchwork-update-commits 321 Bytes
Newer Older
1 2
#!/bin/bash

3
toolsdir="$(dirname "$0")"
4
pwpath="${toolsdir}"/../patchwork
5 6 7 8 9 10 11 12 13 14 15

if [ "$#" -lt 1 ]
then
	echo "usage: $0 <revspec>" >&2
	exit 1
fi

git rev-list --reverse "$@" |
while read commit
do
	hash=$(git show "$commit" | python $pwpath/parser.py -#)
16
	$pwpath/bin/pwclient update -s Accepted -c "$commit" -h "$hash"
17
done