From f9060b825e26cedf96d8168556588e2fdbb95abe Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Fri, 18 Dec 2020 13:41:01 +0300 Subject: [PATCH] scripts/kpatch: change the git log format Instead of using the normally --online format, use a format so we can cut and paste it into the Fixes tag line. Signed-off-by: Dan Carpenter --- smatch_scripts/kpatch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smatch_scripts/kpatch.sh b/smatch_scripts/kpatch.sh index b5b08498..16c3e687 100755 --- a/smatch_scripts/kpatch.sh +++ b/smatch_scripts/kpatch.sh @@ -95,7 +95,7 @@ else echo "" >> $MSG_FILE echo "# $sm_err" >> $MSG_FILE fi -git log -10 --oneline $fullname | sed -e 's/^/# /' >> $MSG_FILE +git log -10 --oneline --format="%h (\"%s\")" $fullname | sed -e 's/^/# /' >> $MSG_FILE vim $MSG_FILE grep -v '^#' $MSG_FILE > $MSG_FILE.1 -- 2.11.4.GIT