aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2020-02-05 11:34:07 +0100
committerDaniel Stenberg <daniel@haxx.se>2020-02-05 13:54:13 +0100
commitd2411a78ee417570fb2f3ced2094917a32e31583 (patch)
tree650f552d3c5c71965f94c9ff12810d3f525e1c1d
parent5296abe3aff8b92efc7b1c214a6cf7531942b696 (diff)
contrithanks: Use the most recent tag by default
(similar to 5296abe) Closes #4883
-rwxr-xr-xscripts/contrithanks.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/contrithanks.sh b/scripts/contrithanks.sh
index 85af71038..da395aebf 100755
--- a/scripts/contrithanks.sh
+++ b/scripts/contrithanks.sh
@@ -28,8 +28,12 @@
start=$1
-if test -z "$start"; then
+if test "$start" = "-h"; then
echo "Usage: $0 <since this tag/hash>"
+ exit
+fi
+if test -z "$start"; then
+ start=`git tag --sort=taggerdate | tail -1`;
fi
cat ./docs/THANKS