jwiegley / git-scripts

A bunch of random scripts I've either written, downloaded or clipped from #git.

This URL has Read+Write access

git-scripts / git-children-of
3c301e76 » jwiegley 2008-08-26 Initial commit 1 #!/bin/bash
2
3 commit=$1
4 branch=$2
5 if [[ -z "$branch" ]]; then
6 branch=HEAD
7 fi
8
9 git rev-list --children $branch --not $commit^@ | \
10 awk "/^$commit/ { print \$2 }"