From: Stephen Rothwell Date: Tue, 12 Feb 2019 02:18:30 +0000 (+1100) Subject: check_fixes: give more advice X-Git-Url: https://git.ozlabs.org/?a=commitdiff_plain;h=aad872600dbc3ca8ff127a9037828ee95b02f851;p=next-scripts check_fixes: give more advice --- diff --git a/check_fixes b/check_fixes index 46a0b37..63abf88 100755 --- a/check_fixes +++ b/check_fixes @@ -15,6 +15,7 @@ Linus_tree="${HOME}/kernels/linus.git" split_re='^([Cc][Oo][Mm][Mm][Ii][Tt])?[[:space:]]*([[:xdigit:]]{5,})([[:space:]]*)(.*)$' nl=$'\n' +tab=$'\t' # Strip the leading and training spaces from a string strip_spaces() @@ -127,7 +128,7 @@ has these problem(s): target_subject=$(strip_spaces "$target_subject") if [ "$subject" != "${target_subject:0:${#subject}}" ]; then - msg="${msg:+${msg}${nl}} - Subject does not match target commit subject" + msg="${msg:+${msg}${nl}} - Subject does not match target commit subject${nl} Just use${nl}${tab}git log -1 --format='Fixes: %h ("%s")'" fi lsha=$(cd "$Linus_tree" && git rev-parse -q --verify "$sha") if [ -z "$lsha" ]; then