Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 27 lines (22 sloc) 0.625 kB
#!/bin/sh
# Git Compare Differences
function git_cmp_diffs() {
if [ $(git show $1 | git patch-id | cut -c 40) != $(git show $2 | git patch-id | cut -c 40) ]; then
echo "Diffs are NOT equal."
else
echo "Diffs ARE equal."
fi
}
alias gcd='git_cmp_diffs'
# Git Is Merged
function git_is_merged() {
revlist=$(git rev-list -1 $1 --not $2)
if [ $? -eq 0 ]; then
if [ "$revlist" = "" ]; then
echo "$(basename $1) IS merged into $(basename $2)."
else
echo "$(basename $1) is NOT merged into $(basename $2)."
fi
fi
}
alias gim='git_is_merged'
Jump to Line
Something went wrong with that request. Please try again.