git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Is there a reason to keep walker.c ?
@ 2008-01-27 20:45 Mike Hommey
  2008-01-27 20:46 ` Johannes Schindelin
  2008-01-27 21:23 ` Daniel Barkalow
  0 siblings, 2 replies; 8+ messages in thread
From: Mike Hommey @ 2008-01-27 20:45 UTC (permalink / raw)
  To: git

Hi,

While working on the http code refactoring, I got to wonder if the
walker.c "wrapper", that is only used for the http transport, is still
worth keeping. If there are plans for others transport to use this code,
obviously, it would be worth keeping, but on the contrary, I think it
would simplify the http transport code even more. What do you think ?

Cheers,

Mike

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Is there a reason to keep walker.c ?
  2008-01-27 20:45 Is there a reason to keep walker.c ? Mike Hommey
@ 2008-01-27 20:46 ` Johannes Schindelin
  2008-01-27 20:51   ` Mike Hommey
  2008-01-27 21:23 ` Daniel Barkalow
  1 sibling, 1 reply; 8+ messages in thread
From: Johannes Schindelin @ 2008-01-27 20:46 UTC (permalink / raw)
  To: Mike Hommey; +Cc: git

Hi,

On Sun, 27 Jan 2008, Mike Hommey wrote:

> While working on the http code refactoring, I got to wonder if the 
> walker.c "wrapper", that is only used for the http transport, is still 
> worth keeping. If there are plans for others transport to use this code, 
> obviously, it would be worth keeping, but on the contrary, I think it 
> would simplify the http transport code even more. What do you think ?

Really, I was waiting for somebody needing ftp and/or sftp support badly 
enough, so let's keep it.

I mean, one of those guys asking for ftp push support _got_ to just start 
scratching that itch, right?

Ciao,
Dscho

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Is there a reason to keep walker.c ?
  2008-01-27 20:46 ` Johannes Schindelin
@ 2008-01-27 20:51   ` Mike Hommey
  2008-01-27 21:23     ` Jakub Narebski
  0 siblings, 1 reply; 8+ messages in thread
From: Mike Hommey @ 2008-01-27 20:51 UTC (permalink / raw)
  To: Johannes Schindelin; +Cc: git

On Sun, Jan 27, 2008 at 08:46:59PM +0000, Johannes Schindelin wrote:
> Hi,
> 
> On Sun, 27 Jan 2008, Mike Hommey wrote:
> 
> > While working on the http code refactoring, I got to wonder if the 
> > walker.c "wrapper", that is only used for the http transport, is still 
> > worth keeping. If there are plans for others transport to use this code, 
> > obviously, it would be worth keeping, but on the contrary, I think it 
> > would simplify the http transport code even more. What do you think ?
> 
> Really, I was waiting for somebody needing ftp and/or sftp support badly 
> enough, so let's keep it.
> 
> I mean, one of those guys asking for ftp push support _got_ to just start 
> scratching that itch, right?

Though, technically, ftp push could work with the curl code.

Mike

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Is there a reason to keep walker.c ?
  2008-01-27 20:51   ` Mike Hommey
@ 2008-01-27 21:23     ` Jakub Narebski
  0 siblings, 0 replies; 8+ messages in thread
From: Jakub Narebski @ 2008-01-27 21:23 UTC (permalink / raw)
  To: Mike Hommey; +Cc: Johannes Schindelin, git

Mike Hommey <mh@glandium.org> writes:

> On Sun, Jan 27, 2008 at 08:46:59PM +0000, Johannes Schindelin wrote:
>> On Sun, 27 Jan 2008, Mike Hommey wrote:
>> 
>>> While working on the http code refactoring, I got to wonder if the 
>>> walker.c "wrapper", that is only used for the http transport, is still 
>>> worth keeping. If there are plans for others transport to use this code, 
>>> obviously, it would be worth keeping, but on the contrary, I think it 
>>> would simplify the http transport code even more. What do you think ?
>> 
>> Really, I was waiting for somebody needing ftp and/or sftp support badly 
>> enough, so let's keep it.
>> 
>> I mean, one of those guys asking for ftp push support _got_ to just start 
>> scratching that itch, right?
> 
> Though, technically, ftp push could work with the curl code.

IIRC git fetch works with FTP transport.  Somebody would have to write
replacement for WebDAV authentication for ftp / sftp / ftps to have
proper ftp push support.  There were request, but AFAIR no code.

Are you thinking about POP / IMAP transport, or XMPP one ;-PPP ?
-- 
Jakub Narebski
Poland
ShadeHawk on #git

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Is there a reason to keep walker.c ?
  2008-01-27 20:45 Is there a reason to keep walker.c ? Mike Hommey
  2008-01-27 20:46 ` Johannes Schindelin
@ 2008-01-27 21:23 ` Daniel Barkalow
  2008-01-28  7:17   ` Mike Hommey
  1 sibling, 1 reply; 8+ messages in thread
From: Daniel Barkalow @ 2008-01-27 21:23 UTC (permalink / raw)
  To: Mike Hommey; +Cc: git

On Sun, 27 Jan 2008, Mike Hommey wrote:

> Hi,
> 
> While working on the http code refactoring, I got to wonder if the
> walker.c "wrapper", that is only used for the http transport, is still
> worth keeping. If there are plans for others transport to use this code,
> obviously, it would be worth keeping, but on the contrary, I think it
> would simplify the http transport code even more. What do you think ?

It would be a good base for sftp (i.e. dumb file access over ssh). In 
fact, I think stuff should ideally be moved into walker.c such that the 
HTTP-specific code just handles access to files by filename and the logic 
of what files to request in what order is in walker.c. I think this would 
get the simplification you're looking for while making it easy to add sftp 
or any other situation where you have only slow remote filesystem-like 
access to the repository.

	-Daniel
*This .sig left intentionally blank*

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Is there a reason to keep walker.c ?
  2008-01-27 21:23 ` Daniel Barkalow
@ 2008-01-28  7:17   ` Mike Hommey
  2008-01-28 18:58     ` http-push as a builtin ? (Was: Is there a reason to keep walker.c ?) Mike Hommey
  0 siblings, 1 reply; 8+ messages in thread
From: Mike Hommey @ 2008-01-28  7:17 UTC (permalink / raw)
  To: Daniel Barkalow; +Cc: git

On Sun, Jan 27, 2008 at 04:23:17PM -0500, Daniel Barkalow wrote:
> On Sun, 27 Jan 2008, Mike Hommey wrote:
> 
> > Hi,
> > 
> > While working on the http code refactoring, I got to wonder if the
> > walker.c "wrapper", that is only used for the http transport, is still
> > worth keeping. If there are plans for others transport to use this code,
> > obviously, it would be worth keeping, but on the contrary, I think it
> > would simplify the http transport code even more. What do you think ?
> 
> It would be a good base for sftp (i.e. dumb file access over ssh). In 
> fact, I think stuff should ideally be moved into walker.c such that the 
> HTTP-specific code just handles access to files by filename and the logic 
> of what files to request in what order is in walker.c. I think this would 
> get the simplification you're looking for while making it easy to add sftp 
> or any other situation where you have only slow remote filesystem-like 
> access to the repository.

I like this idea. I'll probably implement that, then.

Mike

^ permalink raw reply	[flat|nested] 8+ messages in thread

* http-push as a builtin ? (Was: Is there a reason to keep walker.c ?)
  2008-01-28  7:17   ` Mike Hommey
@ 2008-01-28 18:58     ` Mike Hommey
  2008-01-28 19:45       ` Daniel Barkalow
  0 siblings, 1 reply; 8+ messages in thread
From: Mike Hommey @ 2008-01-28 18:58 UTC (permalink / raw)
  To: Daniel Barkalow; +Cc: git

On Mon, Jan 28, 2008 at 08:17:49AM +0100, Mike Hommey wrote:
> On Sun, Jan 27, 2008 at 04:23:17PM -0500, Daniel Barkalow wrote:
> > On Sun, 27 Jan 2008, Mike Hommey wrote:
> > 
> > > Hi,
> > > 
> > > While working on the http code refactoring, I got to wonder if the
> > > walker.c "wrapper", that is only used for the http transport, is still
> > > worth keeping. If there are plans for others transport to use this code,
> > > obviously, it would be worth keeping, but on the contrary, I think it
> > > would simplify the http transport code even more. What do you think ?
> > 
> > It would be a good base for sftp (i.e. dumb file access over ssh). In 
> > fact, I think stuff should ideally be moved into walker.c such that the 
> > HTTP-specific code just handles access to files by filename and the logic 
> > of what files to request in what order is in walker.c. I think this would 
> > get the simplification you're looking for while making it easy to add sftp 
> > or any other situation where you have only slow remote filesystem-like 
> > access to the repository.
> 
> I like this idea. I'll probably implement that, then.

BTW, would there be objections to have http-push as a builtin ?

Mike

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: http-push as a builtin ? (Was: Is there a reason to keep walker.c ?)
  2008-01-28 18:58     ` http-push as a builtin ? (Was: Is there a reason to keep walker.c ?) Mike Hommey
@ 2008-01-28 19:45       ` Daniel Barkalow
  0 siblings, 0 replies; 8+ messages in thread
From: Daniel Barkalow @ 2008-01-28 19:45 UTC (permalink / raw)
  To: Mike Hommey; +Cc: git

On Mon, 28 Jan 2008, Mike Hommey wrote:

> On Mon, Jan 28, 2008 at 08:17:49AM +0100, Mike Hommey wrote:
> > On Sun, Jan 27, 2008 at 04:23:17PM -0500, Daniel Barkalow wrote:
> > > On Sun, 27 Jan 2008, Mike Hommey wrote:
> > > 
> > > > Hi,
> > > > 
> > > > While working on the http code refactoring, I got to wonder if the
> > > > walker.c "wrapper", that is only used for the http transport, is still
> > > > worth keeping. If there are plans for others transport to use this code,
> > > > obviously, it would be worth keeping, but on the contrary, I think it
> > > > would simplify the http transport code even more. What do you think ?
> > > 
> > > It would be a good base for sftp (i.e. dumb file access over ssh). In 
> > > fact, I think stuff should ideally be moved into walker.c such that the 
> > > HTTP-specific code just handles access to files by filename and the logic 
> > > of what files to request in what order is in walker.c. I think this would 
> > > get the simplification you're looking for while making it easy to add sftp 
> > > or any other situation where you have only slow remote filesystem-like 
> > > access to the repository.
> > 
> > I like this idea. I'll probably implement that, then.
> 
> BTW, would there be objections to have http-push as a builtin ?

Not from me. Actually, it would be ideal to call its functions directly 
from transport.c and deprecate the separate command. (And possibly 
separate the control structure from the HTTP code and move the former into 
walker.c where it could be used by sftp)

	-Daniel
*This .sig left intentionally blank*

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2008-01-28 19:45 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-27 20:45 Is there a reason to keep walker.c ? Mike Hommey
2008-01-27 20:46 ` Johannes Schindelin
2008-01-27 20:51   ` Mike Hommey
2008-01-27 21:23     ` Jakub Narebski
2008-01-27 21:23 ` Daniel Barkalow
2008-01-28  7:17   ` Mike Hommey
2008-01-28 18:58     ` http-push as a builtin ? (Was: Is there a reason to keep walker.c ?) Mike Hommey
2008-01-28 19:45       ` Daniel Barkalow

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).