Merge "ignore whitespace when diffing requirements files"
This commit is contained in:
commit
2e15a759dd
@ -74,7 +74,11 @@ def git_diff(workdir, repo, git_range, file_pattern):
|
|||||||
file_pattern)))
|
file_pattern)))
|
||||||
if files:
|
if files:
|
||||||
header('Requirements Changes %s' % git_range)
|
header('Requirements Changes %s' % git_range)
|
||||||
cmd = ['git', 'diff', '-U0', '--no-color', git_range]
|
cmd = [
|
||||||
|
'git', 'diff', '-U0', '--no-color',
|
||||||
|
'--ignore-space-change', '--ignore-blank-lines',
|
||||||
|
git_range,
|
||||||
|
]
|
||||||
cmd.extend(f[len(repo_dir) + 1:] for f in files)
|
cmd.extend(f[len(repo_dir) + 1:] for f in files)
|
||||||
subprocess.check_call(cmd, cwd=repo_dir)
|
subprocess.check_call(cmd, cwd=repo_dir)
|
||||||
print()
|
print()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user