]> Untitled Git - hvutilities.git/commitdiff
hvsp: use --grep option in git log
authorHugo Villeneuve <hugo@hugovil.com>
Tue, 24 Mar 2026 16:26:16 +0000 (12:26 -0400)
committerHugo Villeneuve <hugo@hugovil.com>
Tue, 24 Mar 2026 16:27:23 +0000 (12:27 -0400)
Signed-off-by: Hugo Villeneuve <hugo@hugovil.com>
scripts/kernel-send-patches.sh

index 74d3110e699c4a7655768ac829237a9e8142e0e2..d2d4d64fe30da57c2e073e70e9ce0ec64a1e791f 100755 (executable)
@@ -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: