git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [RFH] Exploration of an alternative diff_delta() algorithm

From
Nicolas Pitre <nico@cam.org>
Date
Apr 9, 2006, 17:45 UTC
Message-ID
<Pine.LNX.4.64.0604091340540.2215@localhost.localdomain>
In-Reply-To
<20060409173409.GB23908@erlang.gbar.dtu.dk>
On Sun, 9 Apr 2006, Peter Eriksen wrote:
Show 17 quoted lines
> On Sun, Apr 09, 2006 at 01:14:31PM -0400, Nicolas Pitre wrote:
> ...
> > Nothing outside diff-delta.c and patch-delta.c is aware of the delta 
> > data format.  So if your version is meant to be a transparent 
> > replacement then it should pass all tests.  If it doesn't then it is 
> > broken.
> > 
> > To help you play around you could try the test-delta utility (make 
> > test-delta to build it).
> > 
> > So:
> > 
> > 	test-delta -d file1 file2 delta_file
> > 	test-delta -p file1 delta_file file3
> > 	cmp file2 file3
> 
> My tests of these kinds doesn't show any errors. 
Try this with the README file from the git source tree:
	sed s/git/GIT/g < ./README > /tmp/README.mod
	test-delta -d ./README /tmp/README.mod /tmp/README.delta
	[BOOM!]
> Though, if file2 is empty, test-delta writes: "file2: Invalid 
> argument".
We never delta against or towards empty files.
Nicolas
Previous: Peter EriksenNext: Peter Eriksen
Message 4 of 9 in “[RFH] Exploration of an alternative diff_delta() algorithm”
  1. Peter EriksenApr 9, 2006
  2. Nicolas PitreApr 9, 2006
  3. Peter EriksenApr 9, 2006
  4. Nicolas PitreApr 9, 2006
  5. Peter EriksenApr 9, 2006
  6. Nicolas PitreApr 10, 2006
  7. Nicolas PitreApr 9, 2006
  8. Peter EriksenApr 9, 2006
  9. Nicolas PitreApr 9, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.