From: Hugo Villeneuve Date: Tue, 24 Mar 2026 16:26:16 +0000 (-0400) Subject: hvsp: use --grep option in git log X-Git-Url: http://gitweb.hugovil.com/sitemap.xml?a=commitdiff_plain;h=4ae8b571a6a48fada6e71c7f6bd2392ffcce8577;p=hvutilities.git hvsp: use --grep option in git log Signed-off-by: Hugo Villeneuve --- diff --git a/scripts/kernel-send-patches.sh b/scripts/kernel-send-patches.sh index 74d3110..d2d4d64 100755 --- a/scripts/kernel-send-patches.sh +++ b/scripts/kernel-send-patches.sh @@ -195,7 +195,7 @@ fi # First arg: commit message find_commit_by_log() { - echo $(git log --oneline HEAD~100..HEAD | grep "${1}" | awk {'print $1'}) + echo $(git --no-pager log --no-abbrev-commit --oneline -F --pretty=oneline --max-count=1 --since=1.year --grep "${1}" | awk {'print $1'}) } # Find SHA1 of preceding commit: