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

Re: [PATCH 2/3 v3] Use an external program to implement fetching with curl

From
Sverre Rabbelier <srabbelier@gmail.com>
Date
Aug 5, 2009, 18:15 UTC
Message-ID
<fabb9a1e0908051115u145b2b0bi2973bcf41d5ef68f@mail.gmail.com>
In-Reply-To
<alpine.LNX.2.00.0908051135080.2147@iabervon.org>
Heya,
On Wed, Aug 5, 2009 at 08:45, Daniel Barkalow<barkalow@iabervon.org> wrote:
Show 6 quoted lines
> Someday, I want to
> have a diff output format that makes these things clear somehow. I think
> it would be not-too-hard to get the diff code to determine that an
> addition matches or almost matches a deletion (or some unchanged code),
> and provide library access to this information, but representing it to
> humans (and getting patch to still work) is hard.

I started on this a while ago (as part of some post-GSoC git-stats work), but I had a hard time finding a good rule to determine whether an added hunk is similar enough to a deleted hunk elsewhere. Perhaps a variant of Levenshtein can be used to determine how different two hunks are; I tried diffing the two hunks and then looking at the ration between the size of the diff and the size of the original hunk, but as said that didn't really work out.

-- 
Cheers,

Sverre Rabbelier
Previous: Daniel BarkalowNext: Johannes Schindelin
Message 4 of 6 in “Use an external program to implement fetching with curl”
  1. 2/3 Use an external program to implement fetching with curlDaniel Barkalow, Jul 31, 2009
  2. Johannes SchindelinAug 5, 2009
  3. Daniel BarkalowAug 5, 2009
  4. Sverre RabbelierAug 5, 2009
  5. Johannes SchindelinAug 5, 2009
  6. Junio C HamanoAug 5, 2009

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.