public
Description: Utilities for Git users
Homepage:
Clone URL: git://github.com/cv/git-utils.git
git-utils / 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 }"