dotfiles/.local/bin/scripts/git-child
2021-01-23 19:55:22 +01:00

4 lines
197 B
Bash
Executable file

#!/bin/sh
# Find a commit that follows the given one
# Second argument can be used to specify the search range - default HEAD
git log --reverse --ancestry-path --pretty=%H $1..${2:-HEAD} | head -1