blob: 8be71e74e418a14059e3b0c72427da3cf3aa00a6 (
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}" "$@"
|