Skip to content

Commit 23c34b1

Browse files
committed
Refactor slightly.
1 parent 84e7069 commit 23c34b1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

git-children-of

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
commit=$1
44
branch=$2
5-
if [[ -z "$branch" ]]; then
6-
branch=HEAD
7-
fi
85

9-
git rev-list --children $branch --not $commit^@ | \
10-
awk "/^$commit/ { print \$2 }"
6+
[ -z "$branch" ] && branch=HEAD
7+
8+
git rev-list --children $branch --not $commit^@ \
9+
| awk "/^$commit/ { print \$2 }"
10+

0 commit comments

Comments
 (0)