diff

is there a simple way to know which files will be updated in the next 'git pull' ?

i would like to know which files would be updated (and hopefully the changes that would occur) if i'd do a 'git pull'... is git stash git fetch git diff origin/master git stash apply the answer ? ...

sqlite diff-script generator

Given two sqlite databases A and B, is there a tool that can generate SQL commands that will convert A to B (or vice versa)? This must included insertions, deletions, and updates - and maybe also table alterations (though that's not important to me). Possibly this tool is not even sqlite-specific. ...

question about RSS and ATOM

What is the difference between these? Where can I find useful links to implement atom reader in java? ...

Generating and applying diffs in python

Is there an 'out-of-the-box' way in python to generate a list of differences between two texts, and then applying this diff to one file to obtain the other, later? I want to keep the revision history of a text, but I don't want to save the entire text for each revision if there is just a single edited line. I looked at difflib, but I c...

Compare/Difference of two arrays in bash

Hello, Is it possible to take the difference of two arrays in bash.. Would be really great if you could suggest me the way to do it.. Code : Array1=( "key1" "key2" "key3" "key4" "key5" "key6" "key7" "key8" "key9" "key10" ) Array2=( "key1" "key2" "key3" "key4" "key5" "key6" ) Array3 =diff(Array1, Array2) Array3 ideally should be : Ar...

What's the feature in Mercurial that gives me "checkpoints" that I can diff against without commiting frequent, breaking, small changes?

I'm developing a project, and I am making small, exploratory changes. After each change, I'd like to diff against the previous version I had. However, I don't want to commit each of these small changes to the permanent history until I'm satisfied that the final change should be made permanent. Then I'd like to commit it in one go. What'...

How to use TortoiseMerge with Visual SourceSafe 2005?

I tried by setting up a custom editor for "File Difference" in Tools->Options->Custom Editors with the command line: "tortoiseproc /command:diff /path:%1 /path2:%2". TortoiseMerge launches but it can't find the files to compare. The files to compare should be in a temp folder but they aren't there. SourceSafe isn't making the files avail...

TFS email diff on commit

Hi All, Anyone know of a way to send diff emails when a commit is made to TFS 2010? Essentially, the email should show all files modified, along with all lines added/edited/deleted (as well as a few "context lines" i.e. unchanged lines above and below the modified areas) Thanks! ...

How exactly does subversion store files in the repository?

I read the subversion book and it is clear to me that subversion does not store individual files but only deltas in order to minimize disk space. Subversion also does the same with binary files as well (this used to be a huge weakness of CVS). However I do not understand the exact mechanism. When I commit a file what happens? Subversi...

How to visualize or format a diff / patch file?

I have a patch file (unified diff), like the output from svn diff, git diff, or diff -u .... I want to review it, but the unified diff format - especially with many files & changes - is hard on my eyes. How can I get a nicely-formatted diff view from the patch file? I don't have the files themselves, only the diff, so I can't use all th...

Looking for a DTD diff tool / is a given DTD a subset of another

I need to verify that a "simplified" DTD is really a subset of a larger DTD, i.e. that documents that are valid according to the "simplified" DTD will also always be valid according to the larger (or "master") DTD. The simplified DTD is being written now -- it's derived from the master DTD (were it the other way around, one could simply...

How can I find the svn diff between working copy and arbitrary rev?

I'm trying to write a multi-file patch for an open-source project, but the master copy has changed since I started working. I need to get the SVN difference (just the files under version control) between my uncommitted version and the revision from which it was checked. Which SVN command can I use to find the difference? Edit: I'm sorry...

Convert diff to markdown with strikeout?

I'd like to convert the output of diff (on a Markdown file) to Markdown with <strike> and <em> tags, so that I can see what has been removed from or added to a new version of a document. (This kind of treatment is very common for legal documents.) Example of hoped-for output: Why do weWe study programming languages? notNot in ord...

Subversion - Timestamp changes, but content does not

Hello there, I think this is hard to describe, but I will try: We're using Subversion an Buildtools. When we make a Build from our Project, several files will be overwritten, of course. So the timestamp of these files changes, but the content might be the same as before. An svn diff will display the following for exanple: - test.tx...

Case-insensitive diffs in Mercurial

I'm using Mercurial (specifically TortoiseHg on Windows) to do version control of VBA code. Anybody who's tried this knows that VBA changes the case of every variable throughout a project whenever any declaration of that variable is changed anywhere in the project (regardless of scope). It makes version control a nightmare. I would li...

Selective patching

Hi, I have a folder and a patch for that folder. Now, I do not want to include every change made in the patch in my commit. I can select which files I want to exclude in Subclipse, but can I do the same with only certain lines in those files? ...

Paragraph-based diff program?

Does anyone know of a diff viewer or comparison program that can do paragraph-based differentials? My repos has a large number of LaTeX files that are formatted into 80-character wide paragraphs (for easy editing with vim). It's currently very difficult to interpret the diffs between various versions, because any edit that caused the pos...

how to crate a PATCH file for the binary difference output file

hi i want to know how to create a PATCH for the difference file i got by comparing two banary files. $cmp -l > output file name i checked for text files 'diff" can be used to compare and generate a PATCH file $ diff -u oldFile newFile > mods.diff # -u tells diff to output unified diff format i want to apply the PATCH on the old...

How can I view multiple git diffs side by side in vim

I'd like to be able to run a command that opens up a git diff in vim, with a tab for each file in the diff set. So if for example I've changed files foo.txt and bar.txt in my working tree and I ran the command I would see vim open with two tabs. The first tab would contain a side-by-side diff between foo.txt in my working tree and foo....

PHP: visual difference between 2 arrays

I've these arrays: <?php // New $array1 = array( array( 'g_id' => '1', 'g_title' => 'Root Admin', 'g_perm_id' => '1', 'g_bitoptions' => '0' ), array( 'g_id' => '2', 'g_title' => 'Member', 'g_perm_id' => '2', 'g_bitoptions' => '32' ), array( 'g_i...