diff options
author | Johannes Berg <johannes.berg@intel.com> | 2013-04-05 00:28:42 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-04-05 00:28:42 +0200 |
commit | a7a2e992aa2e563c8adb2dec6ddd6e53b1cd9872 (patch) | |
tree | 25b5b9e51f25297b04c5501edd2dedf7f3f52e79 /gentree.py | |
parent | 4311d14688d39a907eb8de329a8d5c57fd9ef316 (diff) |
gentree: add -p option to diff when refreshing patches
This generally makes patches more readable to humans
and has no impact on the tools.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'gentree.py')
-rwxr-xr-x | gentree.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -341,7 +341,7 @@ def process(kerneldir, outdir, copy_list_file, git_revision=None, for patchitem in p.items: patched_file = '/'.join(patchitem.source.split('/')[1:]) fullfn = os.path.join(args.outdir, patched_file) - process = subprocess.Popen(['diff', '-u', patched_file + '.orig_file', patched_file, + process = subprocess.Popen(['diff', '-p', '-u', patched_file + '.orig_file', patched_file, '--label', 'a/' + patched_file, '--label', 'b/' + patched_file], stdout=pfilef, close_fds=True, |