Skip to content

Commit

Permalink
git-log: Add usage string
Browse files Browse the repository at this point in the history
Signed-off-by: Fredrik Kuivinen <freku045@student.liu.se>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Fredrik Kuivinen authored and Junio C Hamano committed Dec 16, 2005
1 parent 92811b5 commit 2a58a9a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions git-log.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
# Copyright (c) 2005 Linus Torvalds
#

# This one uses only subdirectory-aware commands, so no need to
# include sh-setup-script.
USAGE='[--max-count=<n>] [<since>..<limit>] [--pretty=<format>] [git-rev-list options]'
SUBDIRECTORY_OK='Yes'
. git-sh-setup

revs=$(git-rev-parse --revs-only --no-flags --default HEAD "$@") || exit
[ "$revs" ] || {
echo >&2 "No HEAD ref"
exit 1
die "No HEAD ref"
}
git-rev-list --pretty $(git-rev-parse --default HEAD "$@") |
LESS=-S ${PAGER:-less}

0 comments on commit 2a58a9a

Please sign in to comment.