mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-10 20:05:50 +02:00
Use extended regex rather than perl regex in the git call
My local git is not compiled with PCRE support, so using -E makes it easier for me to test the script locally. And -E is good enough for the simple matching we want to do here.
This commit is contained in:
parent
463cf35e64
commit
891362dfb2
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@ fi
|
|||
echo "Base commit: $base_commit"
|
||||
|
||||
# Get commits with "fixup!" in the message from base_commit to HEAD
|
||||
commits=$(git log -i -P --grep "fixup\!" --format="%h %s" "$base_commit..HEAD")
|
||||
commits=$(git log -i -E --grep "fixup\!" --format="%h %s" "$base_commit..HEAD")
|
||||
|
||||
if [ -z "$commits" ]; then
|
||||
echo "No fixup commits found."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue