Skip to content

Latest commit

 

History

History

git-commit-is-merge

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

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