Browse Source

Make "git diff" use git-sh-setup-script too..

Give a sane error rather than just silently claiming no diffs when
you're not at the top-level directory.
maint
Linus Torvalds 20 years ago
parent
commit
d1918a7285
  1. 2
      git-diff-script

2
git-diff-script

@ -1,4 +1,6 @@ @@ -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 "$@"))

Loading…
Cancel
Save