зеркало из https://github.com/microsoft/git.git
git-log: make sure we have some commit to start from.
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>
This commit is contained in:
Родитель
9969b64999
Коммит
b134922992
|
@ -1,3 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
. git-sh-setup-script || die "Not a git archive"
|
. 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}
|
git-rev-list --pretty $(git-rev-parse --default HEAD "$@") | LESS=-S ${PAGER:-less}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче