Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichal Čihař <mcihar@suse.cz>2013-12-04 11:58:58 +0400
committerMichal Čihař <mcihar@suse.cz>2013-12-04 12:00:04 +0400
commit3c868cff69879f5addadc1529f4b9eee1a755a43 (patch)
tree7645993e08ae8d34a56ca5ffc449c521932131a9 /scripts
parentaf8b3568cb6c7900c75da1cc9ca19fce68e22b83 (diff)
Add script to check Signed-off-by header in patches
Signed-off-by: Michal Čihař <mcihar@suse.cz>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/check-dco21
1 files changed, 21 insertions, 0 deletions
diff --git a/scripts/check-dco b/scripts/check-dco
new file mode 100755
index 0000000000..15c36bef0d
--- /dev/null
+++ b/scripts/check-dco
@@ -0,0 +1,21 @@
+#!/bin/sh
+# Checks whether all commits in given range have Signed-Off-By
+
+if [ -z "$1" ] ; then
+ echo "Usage: check-dco COMMITRANGE"
+ exit 1
+fi
+
+RESULT=0
+
+for rev in `git rev-list --no-merges $1` ; do
+ if ! git log -1 $rev | grep -iq '^ Signed-Off-By:' ; then
+ echo '------------------------------------------'
+ echo "Missing Signed-Off-By in following commit:"
+ git --no-pager log -1 $rev
+ echo
+ RESULT=1
+ fi
+done
+
+exit $RESULT