#!/bin/sh
#
# git-child - find a commit that follows the given one
#
# usage:
#     second argument can be used to specify the search range - default HEAD

git log --reverse --ancestry-path --pretty=%H $1..${2:-HEAD} | head -1
