projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ee19dc
)
Make "git log" exit properly if not in a git archive
author
Linus Torvalds
<torvalds@g5.osdl.org>
Sun, 10 Jul 2005 23:10:21 +0000
(16:10 -0700)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Sun, 10 Jul 2005 23:10:21 +0000
(16:10 -0700)
Instead of getting an incomprehensible error message from git-rev-list.
git-log-script
patch
|
blob
|
history
diff --git
a/git-log-script
b/git-log-script
index
feca5e9
..
049d02e
100755
(executable)
--- a/
git-log-script
+++ b/
git-log-script
@@
-1,2
+1,3
@@
#!/bin/sh
+. git-sh-setup-script || die "Not a git archive"
git-rev-list --pretty $(git-rev-parse --default HEAD "$@") | LESS=-S ${PAGER:-less}