--leave-preprocessor-space"
echo "--Checking style--"
-for file in `git-diff-index --cached --name-only HEAD --diff-filter=ACMR| grep "\.c$"` ; do
+for file in `git diff-index --cached --name-only HEAD --diff-filter=ACMR| grep "\.c$"` ; do
# nf is the temporary checkout. This makes sure we check against the
# revision in the index (and not the checked out version).
nf=`git checkout-index --temp ${file} | cut -f 1`
def commit_exists(sha1, gitdir):
"""Returns True if the sha1 is a valid commit in the given
git directory"""
- # FIXME: We're using git-show for the time being, but there's a small
+ # FIXME: We're using 'git show' for the time being, but there's a small
# risk that there might be a valid SHA1 for a non-commit object.
env = os.environ.copy()
env["GIT_DIR"] = gitdir
old, new, ref = line.split(' ', 2)
# 1. Get the latest change to common (if there was any changes)
- sub = subprocess.Popen(["git-diff", "%s..%s" % (old, new, ), "--", "common"],
+ sub = subprocess.Popen(["git", "diff", "%s..%s" % (old, new, ), "--", "common"],
stdout=subprocess.PIPE)
stdout, stderr = sub.communicate()
if stdout != "":