Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
Make "git-rev-list" work within subdirectories
[gitweb.git]
/
git-log-script
diff --git
a/git-log-script
b/git-log-script
index 049d02ea1452bca07188cacecb991a56cd97a5f1..9260f920559578feac9922a7c2ef781252567952 100755
(executable)
--- a/
git-log-script
+++ b/
git-log-script
@@
-1,3
+1,4
@@
#!/bin/sh
-. git-sh-setup-script || die "Not a git archive"
+revs=$(git-rev-parse --revs-only --default HEAD "$@") || exit
+[ "$revs" ] || die "No HEAD ref"
git-rev-list --pretty $(git-rev-parse --default HEAD "$@") | LESS=-S ${PAGER:-less}