2005-06-01 18:13:26 +02:00
|
|
|
#!/bin/sh
|
2005-09-01 02:11:39 +02:00
|
|
|
#
|
|
|
|
# Copyright (c) 2005 Linus Torvalds
|
|
|
|
#
|
|
|
|
|
|
|
|
# This one uses only subdirectory-aware commands, so no need to
|
|
|
|
# include sh-setup-script.
|
|
|
|
|
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" ] || {
|
|
|
|
echo >&2 "No HEAD ref"
|
|
|
|
exit 1
|
|
|
|
}
|
|
|
|
git-rev-list --pretty $(git-rev-parse --default HEAD "$@") |
|
|
|
|
LESS=-S ${PAGER:-less}
|