Skip to main content

Questions tagged [diff]

0 votes
2 answers
150 views

In the context of a software update system, suppose we have the following: a.tar: an archive file containing an old version of an application b-a.patch: a file containing the binary difference of the ...
djvg's user avatar
  • 129
2 votes
1 answer
192 views

You have the following situation: You have an SQL database containing two tables product and product_images You would like the user to be able to add, remove, or move around existing images They can ...
Mehdi Saffar's user avatar
3 votes
2 answers
392 views

I've always assumed that the output from diff (typically "unified", whether or not it's colorized) is universally understood among most if not all text-based language programmers. Whether it's used ...
r2evans's user avatar
  • 346
1 vote
1 answer
123 views

I've come up with some ideas for the database design, but I don't know if any of them would be practical in production: posts and a separate post_edits table with a copy of all previous revisions. To ...
davidtgq's user avatar
  • 431
4 votes
3 answers
162 views

I have a replicated database (not SQL, a triple store, but specifics should not matter too much) running on several hosts. Each of them holds a copy of the database which is updated by feeding from ...
StasM's user avatar
  • 3,367
1 vote
0 answers
646 views

My current project is to implement a kind of WinMerge clone to compare two files. I am using C++ with the Win32-API (WTL, ATL, that stuff), and I already designed an UI for this. However, I am now ...
Sossenbinder's user avatar
7 votes
3 answers
1k views

I've patched a bug in some code that is no longer being supported by it's owner but I would like to provide this to other members of the community. A git.patch file technically contains copyright ...
Simon Stevens's user avatar
1 vote
1 answer
191 views

At my current job we develop code on a release branch and then do a code review. After all rework is done the final changes are also synced/merged to the 'main branch'. We want to be sure that all ...
compie's user avatar
  • 111
4 votes
1 answer
1k views

Google has an advanced diff tool specifically designed for compiled binaries called Courgette. Is there any reason why they wouldn't use this in Android and the Google Play Store to download updates? ...
you786's user avatar
  • 171
3 votes
3 answers
608 views

"Code review" (aka "peer review") seems like a really great idea, so my team started practicing it. For a little while it worked well, but then a co-worker merged a branch in, and asked for a review ...
machineghost's user avatar
0 votes
1 answer
234 views

How to ignore bracketing styles when doing code comparisons or diffs? We have several formats of bracketing and I would like: function foo(){ } to be considered the same as function foo() { } Right ...
user3341556's user avatar
12 votes
1 answer
503 views

I have created a DIFF implementation to compare document revisions at work. It is based on An O(ND) Difference Algorithm and Its Variations. One thing that has become important is to take the list ...
ptpaterson's user avatar
4 votes
3 answers
935 views

Let's say I have procedure1() { --body of first procedure-- } Then I rename it into procedure2 and create a procedure1 above it: procedure1() { --body of second procedure-- } procedure2() { ...
Jay Lorn's user avatar
-1 votes
1 answer
204 views

Why is it that diff programs work on a line-by-line basis instead of a hierarchal one? All code can be expressed in a hierarchy, even though it's not immediately apparent. Most of the data we work ...
Brad's user avatar
  • 107
4 votes
1 answer
233 views

I am dissatisfied with the file comparison tools I have worked with so far. While no tool would be able to always predict the line matchings that make best sense, at least current tools should be able ...
Pierre Lebeaupin's user avatar

15 30 50 per page