Skip to content

Commit 0bef48d

Browse files
committed
Tweaked the patch name to include the commit number if available.
- Legacy-Id: 16234
1 parent f4e2352 commit 0bef48d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

bin/mkpatch

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,7 @@ if [ $# -lt 2 ]; then die "Expected patch name and file list on the command line
109109
if [[ $1 =~ / ]]; then die "Expected a patch name, but the first argument to $program seems to be a file path: '$1'"; fi
110110

111111
name=$1; shift;
112+
if [ "$CHG" ]; then name="$name-c$CHG"; fi
112113

113114
patchfile=$progdir/../../patches/$(date +%Y-%m-%d)-$name.patch
114115
if [ -e $patchfile ]; then die "Patchfile $patchfile already exists"; fi

0 commit comments

Comments
 (0)