mirror of
https://github.com/git/git.git
synced 2024-11-19 00:14:12 +01:00
b134922992
When no usable head/tag is specified, git log barfed with underlying error message from rev-list, which was not helpful. Signed-off-by: Linus Torvalds <torvalds@osdl.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
6 lines
230 B
Bash
Executable File
6 lines
230 B
Bash
Executable File
#!/bin/sh
|
|
. git-sh-setup-script || die "Not a git archive"
|
|
revs=$(git-rev-parse --revs-only --default HEAD "$@")
|
|
[ "$revs" ] || die "No HEAD ref"
|
|
git-rev-list --pretty $(git-rev-parse --default HEAD "$@") | LESS=-S ${PAGER:-less}
|