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