diff options
author | Daniel Stenberg <daniel@haxx.se> | 2020-02-05 07:48:18 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2020-02-05 10:46:28 +0100 |
commit | 5296abe3aff8b92efc7b1c214a6cf7531942b696 (patch) | |
tree | 619681aa74b1a2fd5ec7be3d5114a4a86b59bea4 /scripts/contributors.sh | |
parent | 671c48eb1a21a3a369575d4c3838545343a7def0 (diff) | |
download | gnurl-5296abe3aff8b92efc7b1c214a6cf7531942b696.tar.gz gnurl-5296abe3aff8b92efc7b1c214a6cf7531942b696.tar.bz2 gnurl-5296abe3aff8b92efc7b1c214a6cf7531942b696.zip |
scripts: use last set tag if none given
Makes 'delta' and 'contributors.sh' easier to use.
Make the delta script invoke contrithanks to get current number of
contributors instead of counting THANKS, for accuracy.
Closes #4881
Diffstat (limited to 'scripts/contributors.sh')
-rwxr-xr-x | scripts/contributors.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/contributors.sh b/scripts/contributors.sh index a826595c9..0bb16ec00 100755 --- a/scripts/contributors.sh +++ b/scripts/contributors.sh @@ -6,7 +6,7 @@ # | (__| |_| | _ <| |___ # \___|\___/|_| \_\_____| # -# Copyright (C) 2013-2019, Daniel Stenberg, <daniel@haxx.se>, et al. +# Copyright (C) 2013-2020, Daniel Stenberg, <daniel@haxx.se>, et al. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms @@ -29,10 +29,14 @@ start=$1 -if test -z "$start"; then +if test "$start" = "-h"; then echo "Usage: $0 <since this tag/hash> [--releasenotes]" exit fi +if test -z "$start"; then + start=`git tag --sort=taggerdate | tail -1`; + echo "Since $start:" +fi # filter out Author:, Commit: and *by: lines # cut off the email parts |