summaryrefslogtreecommitdiff
path: root/git-log-script
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-08-23 22:32:17 (GMT)
committerJunio C Hamano <junkio@cox.net>2005-08-23 22:32:17 (GMT)
commit58eaf287f1b25f6427b06bd72d8e555615828aeb (patch)
tree6d86eab47d70925761f5923debeaa19c348fb371 /git-log-script
parent89305da8a230e435109cc97ed88241c158813523 (diff)
parent2a29da7c6d6103c4719c71f6cce88e853260912c (diff)
downloadgit-58eaf287f1b25f6427b06bd72d8e555615828aeb.zip
git-58eaf287f1b25f6427b06bd72d8e555615828aeb.tar.gz
git-58eaf287f1b25f6427b06bd72d8e555615828aeb.tar.bz2
Merge refs/heads/master from .
Diffstat (limited to 'git-log-script')
-rwxr-xr-xgit-log-script3
1 files changed, 1 insertions, 2 deletions
diff --git a/git-log-script b/git-log-script
index 24d1e83..9260f92 100755
--- a/git-log-script
+++ b/git-log-script
@@ -1,5 +1,4 @@
#!/bin/sh
-. git-sh-setup-script || die "Not a git archive"
-revs=$(git-rev-parse --revs-only --default HEAD "$@")
+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}