1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2026-05-22 10:15:43 +02:00
Files
lazygit/scripts/check_for_fixups.sh
T
Stefan Haller af0cdf6d6e Fix the check_for_fixups.sh script again
Our most recent change to the script (58309b02a9) broke it because the
anchored regex's no longer match the beginning of the subject. Fix this by
omitting the hash, which is a bit unfortunate but probably acceptable (I rarely
look at the output of the script anyway).
2026-05-06 18:44:59 +02:00

15 lines
350 B
Bash
Executable File

#!/bin/sh
# We will have only done a shallow clone, so the git log will consist only of
# commits on the current PR
commits=$(git log --format="%s" | egrep '(^fixup!|^squash!|^amend!|WIP|DROPME)')
if [ -z "$commits" ]; then
echo "No fixup commits found."
exit 0
else
echo "Fixup or WIP commits found:"
echo "$commits"
exit 1
fi