Tutorial: do not use 'git resolve'.
[git/jnareb-git/bp-gitweb.git] / git-log.sh
blobb36c4e95343aeefd436ac5b4a9d80a85ddc6ec56
1 #!/bin/sh
3 # Copyright (c) 2005 Linus Torvalds
6 # This one uses only subdirectory-aware commands, so no need to
7 # include sh-setup-script.
9 revs=$(git-rev-parse --revs-only --no-flags --default HEAD "$@") || exit
10 [ "$revs" ] || {
11 echo >&2 "No HEAD ref"
12 exit 1
14 git-rev-list --pretty $(git-rev-parse --default HEAD "$@") |
15 LESS=-S ${PAGER:-less}