diff

Git how to find out which single commits that done on one branch and not another

I am about to create a patch file for a project. My branch is the "master" in my local repository. And the remote upstream branch is mapped to the local branch "origin". \ With this command I can compare the two branches and see all differences git diff origin..master [gives me a full patch format of all commits] But in this case, I'...

Sync (Diff) of the remote binary file

Hi! Usually both files are availble for running some diff tool but I need to find the differences in 2 binary files when one of them resides in the server and another is in the mobile device. Then only the different parts can be sent to the server and file updated. ...

A visual patch tool for Linux

I've got a file and a patch for it. I'd like to visually apply the patch, t.i. see how the changes proposed by the patch look in context, make some corrections, and save the resulting file. What tool can do that? Neither of the visual diff tools (i.e. meld, diffuse, diffmerge) do what I want: they don't work with patches, they merely m...

How to apply git diff --binary patches without git installed?

I use to git diff to generate patches that can be applied to remote server to update a project. Locally, I run: git diff --no-prefix HEAD~1 HEAD > example.patch Upload example.patch to remote server and run: patch --dry-run -p0 < example.patch If dry-run is successful, I run: patch -p0 < example.patch This works well, except wh...

deltified document revision control in PHP

If I have a PHP application which allows users to make changes to documents, what is the best way to implement revision tracking for each document? I want the storage of each revision to be deltified (i.e. only save the changes that were made) like svn and other SCMs do with code. I know on a very simple level how it works, but when I st...

practical guide to subversion branch merging

Preface I realise there are already a lot of questions about merging SVN branches on SO. I have read many of them, but still haven't really found the information I'm looking for, so please read this question in it's entirety before proposing to close it as a duplicate I need to merge one SVN branch into another. I'm pretty comfortabl...

How to display word differences using c#?

I would like to show differences between two blocks of text. Rather than comparing lines of text or individual characters, I would like to just compare words separated by specified characters ('\n', ' ', '\t' for example). My main reasoning for this is that the block of text that I'll be comparing generally doesn't have many line break...

Change Ankhsvn diff behavior

I want to have the diff results window show in the task bar, instead of being a floating visual studio dialog item. Can I do this? ...

Using vimdiff with a different .vimrc?

I've been using VIM now for most of my editing for the last week or so and I'm loving the experience. However I have an issue. I've setup my .vimrc file with NERD_tree and a few other goodies. This works well for when I'm coding. However on occasion I use vimdiff via git and this causes some problems. I don't need NERD_Tree open whe...

Free Diff tool that is configurable?

Is there a diff tool, that allows me to write regular expression to remove a line from difference. Like see the two lines: this.Visible = true; Visible = true; And can I write an expression such that if line difference is exactly this ignore the difference. Can you please be specific on how to do that? I give you one more example li...

vimdiff as a merge tool

vimdiff helps in showing the diff of two files graphically and allows us to pick the changes from left to right/right to left. The files I am dealing with are huge files and most of the differences vimdiff reports can be auto-merged except a few.As it takes lot of time to go diff by diff in vimdiff and take the action. I would like to k...

Using combination of File Size and Hash value of only first 20KB of a file to detect duplicates?

A project I'm working on requires detection of duplicate files. Under normal circumstances I would simply compare the file bytes in blocks or hash value of the entire file contents. However, the system does not have access to the entire file - only the first 50KB or so. It also knows the total file size of the original file. I was think...

Perforce -- generate a diff including added files?

When I use "p4 diff", it ignores files that I have open for add. Is it possible to generate a diff that includes added files as well as changed files? ...

Coldfusion, Compare two TimeStamp to get the difference in Hours

Hello... I'm going have SELECT a TIMESTAMP from the MySQL database. What I want to do is compare that to the current time using ColdFusion. If 1+ from the DIFF do this.... If LT 1hr do this.... Thanks ...

How to patch only a particular hunk from a diff

Is there a way to apply a single hunk from a diff to a file? For example, say I do a diff from file A and B, and that produces three chunks of differences, each denoted with something like... @@ -971,30 +977,28 @@ ...(in the case of unified diffs). I'd then want to be able to feed that diff into stdin, and ask patch to only apply hu...

Any visual diff in Linux console?

Many years ago I used d32 which was available for DOS and Linux. Is a non-GUI visual diff available for Linux like this one? Any others than Vim and Emacs (Vim and Emacs are too powerful :-) ) ...

LVDiff not working in Git

I'm trying to get lvdiff from meta-diff suite to work with Git. My .gitconfig looks like this: [gui] recentrepo = C:/Users/Tanner/Desktop/FIRST 2010 Beta/Java/LoganRover [user] name = Tanner Smith email = [email protected] [merge "labview"] name = LabVIEW 3-Way Merge driver = 'C:/Program Files/National Instrum...

Determine where documents differ with Python

I have been using the Python difflib library to find where 2 documents differ. The Differ().compare() method does this, but it is very slow - atleast 100x slower for large HTML documents compared to the diff command. How can I efficiently determine where 2 documents differ in Python? (Ideally I am after the positions rather the actual t...

How to colour lines in LaTeX that match regular expressions.

I'm currently using the LaTeX listings package to display a block of code, and a diff of the file against a previous version. Both blocks are coloured by listings as if they are code (which they are) but I would like to colour the diff similarly to emacs diff-mode - red for lines matching ^-, green for ^\+ etc. Does anyone know if ther...

View differences of branches with meld?

...