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

Re: [PATCH 02/13] Use an external program to implement fetching with curl

From
Daniel Barkalow <barkalow@iabervon.org>
Date
Aug 5, 2009, 15:52 UTC
Message-ID
<alpine.LNX.2.00.0908051145250.2147@iabervon.org>
In-Reply-To
<alpine.DEB.1.00.0908051206460.8306@pacific.mpi-cbg.de>
On Wed, 5 Aug 2009, Johannes Schindelin wrote:
Show 27 quoted lines
> Hi,
> 
> On Wed, 5 Aug 2009, Daniel Barkalow wrote:
> 
> > diff --git a/Makefile b/Makefile
> > index 504646a..35117fc 100644
> > --- a/Makefile
> > +++ b/Makefile
> > @@ -981,6 +981,7 @@ else
> >  		CURL_LIBCURL = -lcurl
> >  	endif
> >  	BUILTIN_OBJS += builtin-http-fetch.o
> > +	PROGRAMS += git-remote-http$X git-remote-https$X git-remote-ftp$X git-http-fetch$X
> >  	EXTLIBS += $(CURL_LIBCURL)
> >  	LIB_OBJS += http.o http-walker.o
> >  	curl_check := $(shell (echo 070908; curl-config --vernum) | sort -r | sed -ne 2p)
> > @@ -1491,6 +1492,10 @@ git-http-push$X: revision.o http.o http-push.o $(GITLIBS)
> >  	$(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) \
> >  		$(LIBS) $(CURL_LIBCURL) $(EXPAT_LIBEXPAT)
> >  
> > +git-remote-http$X git-remote-https$X git-remote-ftp$X: remote-curl.o http.o http-walker.o $(GITLIBS)
> > +	$(QUIET_LINK)$(CC) $(ALL_CFLAGS) -o $@ $(ALL_LDFLAGS) $(filter %.o,$^) \
> > +		$(LIBS) $(CURL_LIBCURL) $(EXPAT_LIBEXPAT)
> > +
> 
> Ooops, I missed this part.  How about making git-remote-https and 
> git-remote-ftp hardlinks to git-remote-http?

Sure. Is "ln ... || ln -s ... || cp ..." the right way to do this cross-platform?

	-Daniel
*This .sig left intentionally blank*
Previous: Johannes SchindelinNext: Johannes Schindelin
Message 3 of 7 in “Use an external program to implement fetching with curl”
  1. 02/13 Use an external program to implement fetching with curlDaniel Barkalow, Aug 5, 2009
  2. Johannes SchindelinAug 5, 2009
  3. Daniel BarkalowAug 5, 2009
  4. Johannes SchindelinAug 5, 2009
  5. Junio C HamanoAug 7, 2009
  6. Daniel BarkalowAug 7, 2009
  7. Makefile: build/install git-remote-<scheme> as hardlinks when ableJunio C Hamano, Aug 7, 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.