Merge "clarify requirements diff portion of list-changes output"

This commit is contained in:
Jenkins 2016-09-14 06:57:39 +00:00 committed by Gerrit Code Review
commit 4b2a1c65e5

View File

@ -79,14 +79,16 @@ 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',
'--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()
for f in files:
cmd = [
'git', 'diff', '-U0', '--no-color',
'--ignore-space-change', '--ignore-blank-lines',
git_range,
f[len(repo_dir) + 1:],
]
print(' '.join(cmd) + '\n')
subprocess.check_call(cmd, cwd=repo_dir)
print()
def main():