blob: ca7ad1567709dd020c2ab4f9a5cbe598a23663e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/bash -e
# Log for a branch, starting from where it diverges from its upstream.
BRANCH=HEAD
if [ $# -gt 0 ]; then
BRANCH="$1"
shift
fi
exec git log "${BRANCH}@{upstream}..${BRANCH}" "$@"
|