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 317aa9b0d61a29fd3ac4713079233304c1da4c29..9260f920559578feac9922a7c2ef781252567952 100755
(executable)
--- a/
git-log-script
+++ b/
git-log-script
@@
-1,2
+1,4
@@
#!/bin/sh
-git-rev-list --pretty HEAD | LESS=-S ${PAGER:-less}
+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}