Questions tagged [unified-diff]
21 questions
0
votes
0 answers
Does unified diff suffice for testing-purposed string comparison?
If we are going to implement tests to compare some inline outputs from the program and the expected outputs, we want to enforce different levels of "strictness":
exact match
exact match after trimming
include occurrences (i.e. all lines in the…

PIG208
- 2,060
- 2
- 10
- 25
0
votes
1 answer
Read Unified Diff & extract to excel
I have extracted the Code difference in Unified format from TFS.
Now I want to read this diff text (unified format) and then extract it to an excel in a customized format.
So what I need is like a parser which can read the diff text…

Nil.G
- 45
- 4
0
votes
1 answer
TortoiseSVN unified diff to working copy
In TortoiseSVN it's possible to view a revision's changes as a unified diff by right clicking it in the revision log, and clicking "show changes as unified diff". But that doesn't let me view my working copy's changes as a unified diff. Is it…

Stefan Monov
- 11,332
- 10
- 63
- 120
0
votes
1 answer
Remove certain files from unfied diff
I have a patch to apply on legacy codebase. There are a lot of files named pom.xml is there, changes to which are to be skipped. How do I remove them from patch?
sed '/^diff --git .*pom.xml$/,/^diff --git/d'
removes a one extra line at the end…

Basilevs
- 22,440
- 15
- 57
- 102
0
votes
1 answer
P4Eclipse unified Diff
How do I obtain a .patch file in Unified format about the local changes as compared to the depot in Perforce for Eclipse?
I am so used to this feature from CVS that in fact any other Diff format would do.

P Varga
- 19,174
- 12
- 70
- 108
-1
votes
3 answers
Render Unified Diff with Python
I have a string which contains svn unified diff. My PyGTK app need to show this diff to user, and I want to render it like other diff tools do, or at least have it colorized.
Do you have something to suggest, external tool, library, custom…

umpirsky
- 9,902
- 13
- 71
- 96