1#!/bin/sh
2#
3# Copyright (c) 2005 Linus Torvalds
4#
56
# This one uses only subdirectory-aware commands, so no need to
7# include sh-setup-script.
89
revs=$(git-rev-parse --revs-only --no-flags --default HEAD "$@") || exit
10[ "$revs" ] || {
11echo >&2 "No HEAD ref"
12exit 1
13}
14git-rev-list --pretty $(git-rev-parse --default HEAD "$@") |
15LESS=-S ${PAGER:-less}