Skip to content

Commit 6420f90

Browse files
authored
Merge pull request #178 from unixorn/really-add-git-children-of
Forgot to add the actual git-children-of script
2 parents 5620293 + a95517e commit 6420f90

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

bin/git-children-of

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env bash
2+
#
3+
# Original source: https://github.com/jwiegley/git-scripts/blob/master/git-children-of
4+
5+
commit=$1
6+
branch=$2
7+
8+
[ -z "$branch" ] && branch=HEAD
9+
10+
git rev-list --children "$branch" --not "$commit"^@ \
11+
awk "/^$commit/ { print \$2 }"

0 commit comments

Comments
 (0)