Skip to content

Files

Latest commit

d150cec · May 21, 2022

History

History

git-commit-is-merge

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
May 21, 2022
Jan 11, 2022

README.md

git commit-is-merge

Is the commit a merge commit? If yes exit 0, else exit 1

Git alias:

commit-is-merge = !"f(){ \
    [ -n \"$(git commit-parents \"$*\" | sed '0,/^parent /d')\" ]; \
};f"

Example:

git commit-is-merge && do-something || do-something-else