summaryrefslogtreecommitdiff
path: root/check-style.py
diff options
context:
space:
mode:
Diffstat (limited to 'check-style.py')
-rwxr-xr-xcheck-style.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/check-style.py b/check-style.py
index df2ae4651..a4cf85612 100755
--- a/check-style.py
+++ b/check-style.py
@@ -8,7 +8,7 @@ import sys
import tempfile
def run_diff(sha):
- proc = subprocess.Popen(["git", "diff", "--function-context", sha, "HEAD"], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
+ proc = subprocess.Popen(["git", "diff", "-U0", "--function-context", sha, "HEAD"], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
files = proc.stdout.read().strip().decode('utf-8')
return files.split('\n')