2005-06-01 16:13:26 +00:00
|
|
|
#!/bin/sh
|
2005-09-01 00:11:39 +00:00
|
|
|
#
|
|
|
|
# Copyright (c) 2005 Linus Torvalds
|
|
|
|
#
|
|
|
|
|
2005-12-15 22:48:26 +00:00
|
|
|
USAGE='[--max-count=<n>] [<since>..<limit>] [--pretty=<format>] [git-rev-list options]'
|
|
|
|
SUBDIRECTORY_OK='Yes'
|
|
|
|
. git-sh-setup
|
2005-09-01 00:11:39 +00:00
|
|
|
|
2005-08-24 21:31:36 +00:00
|
|
|
revs=$(git-rev-parse --revs-only --no-flags --default HEAD "$@") || exit
|
2005-09-01 00:11:39 +00:00
|
|
|
[ "$revs" ] || {
|
2005-12-15 22:48:26 +00:00
|
|
|
die "No HEAD ref"
|
2005-09-01 00:11:39 +00:00
|
|
|
}
|
|
|
|
git-rev-list --pretty $(git-rev-parse --default HEAD "$@") |
|
|
|
|
LESS=-S ${PAGER:-less}
|