release-tools/do-copyright-year: Do not commit the changes!
authorRichard Levitte <levitte@openssl.org>
Tue, 30 May 2023 12:34:35 +0000 (14:34 +0200)
committerRichard Levitte <levitte@openssl.org>
Tue, 30 May 2023 12:37:54 +0000 (14:37 +0200)
Leave it to the caller to do what they want with the changes.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/tools/pull/156)

release-tools/do-copyright-year

index e22dc031444841f6e3b188ef7e4d5b48ea1a62b0..a7ab925925191f5912a87a1e6f725f58a869abf6 100755 (executable)
@@ -1,6 +1,6 @@
 #!/usr/bin/env bash
 #
-# Copyright 2018 The OpenSSL Project Authors. All Rights Reserved.
+# Copyright 2018-2023 The OpenSSL Project Authors. All Rights Reserved.
 #
 # Licensed under the OpenSSL license (the "License").  You may not use
 # this file except in compliance with the License.  You can obtain a copy
@@ -66,7 +66,5 @@ git diff-tree -r --name-status `git rev-list -1 --before=$NYD HEAD`..HEAD | \
        done
        endspin "Files considered: $count"
     )
-echo Files changed: $(git status --porcelain | grep '^ *M' | wc -l)
-echo Committing change locally.
-git commit -m $'Update copyright year\n\nRelease: yes'
+echo Files changed: $(git status --porcelain --untracked-files=no --ignore-submodules=all | grep '^ *M' | wc -l)
 rm -f $ss