1#!/bin/sh
2#
3# Copyright (c) 2005 Linus Torvalds
4#
56
USAGE='[--max-count=<n>] [<since>..<limit>] [--pretty=<format>] [git-rev-list options]'
7SUBDIRECTORY_OK='Yes'
8. git-sh-setup
910
revs=$(git-rev-parse --revs-only --no-flags --default HEAD "$@") || exit
11[ "$revs" ] || {
12die "No HEAD ref"
13}
14git-rev-list --pretty $(git-rev-parse --default HEAD "$@") |
15LESS=-S ${PAGER:-less}