From 0bef48de2daed4b7eb944f6020aa1e782e55c446 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Fri, 7 Jun 2019 12:29:16 +0000 Subject: [PATCH] Tweaked the patch name to include the commit number if available. - Legacy-Id: 16234 --- bin/mkpatch | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/mkpatch b/bin/mkpatch index ea1d95292..075eadb3a 100755 --- a/bin/mkpatch +++ b/bin/mkpatch @@ -109,6 +109,7 @@ if [ $# -lt 2 ]; then die "Expected patch name and file list on the command line if [[ $1 =~ / ]]; then die "Expected a patch name, but the first argument to $program seems to be a file path: '$1'"; fi name=$1; shift; +if [ "$CHG" ]; then name="$name-c$CHG"; fi patchfile=$progdir/../../patches/$(date +%Y-%m-%d)-$name.patch if [ -e $patchfile ]; then die "Patchfile $patchfile already exists"; fi