ignore whitespace when diffing requirements files
For releases we don't care if there are whitespace changes in the requirements file, so ignore them to make it easier to identify new or changed requirements. Change-Id: Ibb7798c833dfa0f6725a15de99f1f1c2bbd37c02 Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
parent
83c16a48fe
commit
935888e317
@ -74,7 +74,11 @@ def git_diff(workdir, repo, git_range, file_pattern):
|
||||
file_pattern)))
|
||||
if files:
|
||||
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)
|
||||
subprocess.check_call(cmd, cwd=repo_dir)
|
||||
print()
|
||||
|
Loading…
Reference in New Issue
Block a user