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
Daniel Barkalow <barkalow@iabervon.org>
Date
Aug 5, 2009, 15:45 UTC
Message-ID
<alpine.LNX.2.00.0908051135080.2147@iabervon.org>
In-Reply-To
<alpine.DEB.1.00.0908051203550.8306@pacific.mpi-cbg.de>
On Wed, 5 Aug 2009, Johannes Schindelin wrote:
Show 20 quoted lines
> Hi,
> 
> On Fri, 31 Jul 2009, Daniel Barkalow wrote:
> 
> > Use the transport native helper mechanism to fetch by http (and ftp, etc).
> > 
> > Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>
> > ---
> > Note that the bulk of remote-curl is code moved verbatim from transport.c; 
> > cleaning it up is a separate topic.
> > 
> >  Makefile      |    5 ++
> >  remote-curl.c |  139 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> >  transport.c   |  136 +-------------------------------------------------------
> >  3 files changed, 145 insertions(+), 135 deletions(-)
> >  create mode 100644 remote-curl.c
> 
> I wanted to suggest using the -C option so that the patch would consist of 
> mostly deleted lines (easier to verify then that it was a code move), but 
> transport.c is over 1000 lines, so that would not have worked!

Yeah; I did use -C (so patch 3 was an obvious move), but git was wiser than to produce a copy-and-delete-85% version anyway. 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.

	-Daniel
*This .sig left intentionally blank*
Previous: Johannes SchindelinNext: Sverre Rabbelier
Message 3 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.