projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0966e1
)
Make "git diff" use git-sh-setup-script too..
author
Linus Torvalds
<torvalds@g5.osdl.org>
Thu, 14 Jul 2005 16:29:35 +0000
(09:29 -0700)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Thu, 14 Jul 2005 16:29:35 +0000
(09:29 -0700)
Give a sane error rather than just silently claiming no diffs when
you're not at the top-level directory.
git-diff-script
patch
|
blob
|
history
diff --git
a/git-diff-script
b/git-diff-script
index
020816b
..
03ed555
100755
(executable)
--- a/
git-diff-script
+++ b/
git-diff-script
@@
-1,4
+1,6
@@
#!/bin/sh
+. git-sh-setup-script || die "Not a git archive"
+
rev=($(git-rev-parse --revs-only "$@"))
flags=($(git-rev-parse --no-revs --flags "$@"))
files=($(git-rev-parse --no-revs --no-flags "$@"))