mirror of
https://github.com/git/git.git
synced 2024-11-06 09:13:01 +01:00
ff84d327df
Some callers to rev-parse were using the output selection flags inconsistently. Signed-off-by: Junio C Hamano <junkio@cox.net>
4 lines
200 B
Bash
Executable file
4 lines
200 B
Bash
Executable file
#!/bin/sh
|
|
revs=$(git-rev-parse --revs-only --no-flags --default HEAD "$@") || exit
|
|
[ "$revs" ] || die "No HEAD ref"
|
|
git-rev-list --pretty $(git-rev-parse --default HEAD "$@") | LESS=-S ${PAGER:-less}
|