git-commit-vandalism/git-log-script
Linus Torvalds 4bc5fbf82e Make "git log" exit properly if not in a git archive
Instead of getting an incomprehensible error message from git-rev-list.
2005-07-10 16:10:21 -07:00

4 lines
143 B
Bash
Executable File

#!/bin/sh
. git-sh-setup-script || die "Not a git archive"
git-rev-list --pretty $(git-rev-parse --default HEAD "$@") | LESS=-S ${PAGER:-less}