Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1723528
| From | Stephen Rothwell <sfr@canb.auug.org.au> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: linux-next: Signed-off-by missing for commit in the arm-soc tree |
| Date | 2017-08-30 19:30 +0200 |
| Message-ID | <ukeYp-2MD-7@gated-at.bofh.it> (permalink) |
| References | <ukaUN-i2-3@gated-at.bofh.it> <ukb4t-li-3@gated-at.bofh.it> <uke2m-2bH-19@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Hi Olof, On Wed, 30 Aug 2017 09:21:47 -0700 Olof Johansson <olof@lixom.net> wrote: > > Thanks for the heads up, Stephen. I presume you have a script that > checks this? It's something we should run too, do you keep it in a > shared location? Script below. -- Cheers, Stephen Rothwell #!/bin/bash if [ "$#" -lt 1 ]; then printf "Usage: %s <commit range>\n", "$0" 1>&2 exit 1 fi for c in $(git rev-list --no-merges "$@"); do ae=$(git log -1 --format='%ae' "$c") aE=$(git log -1 --format='%aE' "$c") an=$(git log -1 --format='%an' "$c") aN=$(git log -1 --format='%aN' "$c") ce=$(git log -1 --format='%ce' "$c") cE=$(git log -1 --format='%cE' "$c") cn=$(git log -1 --format='%cn' "$c") cN=$(git log -1 --format='%cN' "$c") sob=$(git log -1 --format='%b' "$c" | grep -i '^[[:space:]]*Signed-off-by:') am=false cm=false grep -i -q "<$ae>" <<<"$sob" || grep -i -q "<$aE>" <<<"$sob" || grep -i -q ":[[:space:]]*$an[[:space:]]*<" <<<"$sob" || grep -i -q ":[[:space:]]*$aN[[:space:]]*<" <<<"$sob" || am=true grep -i -q "<$ce>" <<<"$sob" || grep -i -q "<$cE>" <<<"$sob" || grep -i -q ":[[:space:]]*$cn[[:space:]]*<" <<<"$sob" || grep -i -q ":[[:space:]]*$cN[[:space:]]*<" <<<"$sob" || cm=true if "$am" || "$cm"; then printf "Commit %s\n" "$c" "$am" && printf "\tauthor SOB missing\n" "$cm" && printf "\tcommitter SOB missing\n" printf "%s %s\n%s\n" "$ae" "$ce" "$sob" fi done exec gitk "$@"
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
linux-next: Signed-off-by missing for commit in the arm-soc tree Stephen Rothwell <sfr@canb.auug.org.au> - 2017-08-30 15:10 +0200
Re: linux-next: Signed-off-by missing for commit in the arm-soc tree Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2017-08-30 15:20 +0200
Re: linux-next: Signed-off-by missing for commit in the arm-soc tree Olof Johansson <olof@lixom.net> - 2017-08-30 18:30 +0200
Re: linux-next: Signed-off-by missing for commit in the arm-soc tree Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2017-08-30 18:50 +0200
Re: linux-next: Signed-off-by missing for commit in the arm-soc tree Stephen Rothwell <sfr@canb.auug.org.au> - 2017-08-30 19:30 +0200
csiph-web