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:
-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