Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 11 lines (8 sloc) 168 Bytes
#!/bin/bash
commit=$1
branch=$2
if [[ -z "$branch" ]]; then
branch=HEAD
fi
git rev-list --children $branch --not $commit^@ | \
awk "/^$commit/ { print \$2 }"