aboutsummaryrefslogtreecommitdiff
path: root/git-log-script
blob: 24d1e83949a8eebb3cf6f8785f681c14ecd1115e (plain)
1
2
3
4
5
#!/bin/sh
. git-sh-setup-script || die "Not a git archive"
revs=$(git-rev-parse --revs-only --default HEAD "$@")
[ "$revs" ] || die "No HEAD ref"
git-rev-list --pretty $(git-rev-parse --default HEAD "$@") | LESS=-S ${PAGER:-less}