public
Description: A bunch of random scripts I've either written, downloaded or clipped from #git.
Homepage:
Clone URL: git://github.com/jwiegley/git-scripts.git
git-scripts / git-children-of
100755 11 lines (8 sloc) 0.168 kb
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash
 
commit=$1
branch=$2
if [[ -z "$branch" ]]; then
branch=HEAD
fi
 
git rev-list --children $branch --not $commit^@ | \
    awk "/^$commit/ { print \$2 }"