There was an error while loading. Please reload this page.
2 parents 5620293 + a95517e commit 6420f90Copy full SHA for 6420f90
bin/git-children-of
@@ -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