mirror of
https://github.com/git-for-windows/git.git
synced 2026-03-28 05:46:45 -05:00
Audit rev-parse users again.
Some callers to rev-parse were using the output selection flags inconsistently. Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
revs=$(git-rev-parse --revs-only --default HEAD "$@") || exit
|
||||
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}
|
||||
|
||||
Reference in New Issue
Block a user