[PATCH] D71577: [lit] Fix internal diff newlines for -w/-b
Joel E. Denny via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 16 15:38:06 PST 2019
jdenny created this revision.
jdenny added reviewers: rnk, stella.stamenova, probinson, thopre, yln.
Herald added a subscriber: delcypher.
Herald added a project: LLVM.
For example, without this patch:
$ python $LIT_BUILTINS/diff.py -b foo.txt bar.txt
*** /tmp/foo.txt
--- /tmp/bar.txt
***************
*** 1,2 ****
1! 2--- 1,2 ----
1! 20
With this patch:
$ python $LIT_BUILTINS/diff.py -b foo.txt bar.txt
*** /tmp/foo.txt
--- /tmp/bar.txt
***************
*** 1,2 ****
1
! 2
--- 1,2 ----
1
! 20
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D71577
Files:
llvm/utils/lit/lit/builtin_commands/diff.py
llvm/utils/lit/tests/Inputs/shtest-shell/diff-b.txt
llvm/utils/lit/tests/Inputs/shtest-shell/diff-w.txt
llvm/utils/lit/tests/max-failures.py
llvm/utils/lit/tests/shtest-shell.py
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71577.234177.patch
Type: text/x-patch
Size: 3650 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191216/480c0225/attachment.bin>
More information about the llvm-commits
mailing list