From 4c4db93645430160b13d2ed1b27fead2e1f87db3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Ridderstr=C3=B6m?= Date: Sun, 20 Aug 2017 18:34:25 +0200 Subject: [PATCH] Set n:o digits in abbrev. hash in script that checks commit log. Expliclyt set n:o digits in abbrev. hash in script that checks the commit log to make script behave the same way on different platforms. Also improve help text. --- ...it_log_for_unrecognised_email_addresses.sh | 37 ++++++++++++------- 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/development/CI/bin/check_git_log_for_unrecognised_email_addresses.sh b/development/CI/bin/check_git_log_for_unrecognised_email_addresses.sh index d6ca54794b..5b6646c695 100755 --- a/development/CI/bin/check_git_log_for_unrecognised_email_addresses.sh +++ b/development/CI/bin/check_git_log_for_unrecognised_email_addresses.sh @@ -3,36 +3,44 @@ # CMD=$1 SINCE_DATE=2015-01-01 +# Set format of output as follows: +# abbrev-hash author-date(ISO8601-like) author-name author-email FORMAT='%h %ai name=%an email=%ae' +# For portability/robustness, explicitly set n:o digits in commit hash (%h) +HASH_ABBREV=10 SCRIPT=$0 function show_help() { cat < { --help | -h | --list | -l | --compute-hash } +