* How can i write a new protocol for git
@ 2008-09-05 9:22 Sky Patrick
2008-09-05 9:38 ` Jakub Narebski
2008-09-05 9:47 ` Mike Hommey
0 siblings, 2 replies; 5+ messages in thread
From: Sky Patrick @ 2008-09-05 9:22 UTC (permalink / raw)
To: git
Hi,
If i want to write a new protocol for file transfer and would like to
to integrate it with git. Is it possible and easy to integrate it ?
Currently, i know that jgit may achieve it, but it is a Java
implementation and may not work with git command line program that
written in C.
Regards
Patrick
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How can i write a new protocol for git
2008-09-05 9:22 How can i write a new protocol for git Sky Patrick
@ 2008-09-05 9:38 ` Jakub Narebski
2008-09-05 9:47 ` Mike Hommey
1 sibling, 0 replies; 5+ messages in thread
From: Jakub Narebski @ 2008-09-05 9:38 UTC (permalink / raw)
To: Sky Patrick; +Cc: git
"Sky Patrick" <patricksky852@gmail.com> writes:
> If i want to write a new protocol for file transfer and would like to
> to integrate it with git. Is it possible and easy to integrate it ?
> Currently, i know that jgit may achieve it, but it is a Java
> implementation and may not work with git command line program that
> written in C.
What is exactly what you want to achieve? From the above it is not
clear if you want to add support for new protocol in git (like
amazon-s3 support in JGit, or currently in the works smart HTTP
transport (HTTP POST)), or perhaps you want some separate application
using some unknown file transfer protocol to somehow integrate with
git; but what this integration is to be?
--
Jakub Narebski
Poland
ShadeHawk on #git
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How can i write a new protocol for git
2008-09-05 9:22 How can i write a new protocol for git Sky Patrick
2008-09-05 9:38 ` Jakub Narebski
@ 2008-09-05 9:47 ` Mike Hommey
2008-09-05 14:52 ` Shawn O. Pearce
1 sibling, 1 reply; 5+ messages in thread
From: Mike Hommey @ 2008-09-05 9:47 UTC (permalink / raw)
To: Sky Patrick; +Cc: git
On Fri, Sep 05, 2008 at 05:22:57PM +0800, Sky Patrick wrote:
> Hi,
>
> If i want to write a new protocol for file transfer and would like to
> to integrate it with git. Is it possible and easy to integrate it ?
> Currently, i know that jgit may achieve it, but it is a Java
> implementation and may not work with git command line program that
> written in C.
First, it would depend if you need this new protocol to be a dumb
protocol (like rsync and http) or "native" (git or ssh).
I've been meaning to refactor the dumb protocol "stack" for a while, but
haven't gone much further than ideas in my mind (i.e. no code). I also
have some start of http code recfactoring, that is waiting for this dumb
protocol rework to be completed.
Mike
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How can i write a new protocol for git
2008-09-05 9:47 ` Mike Hommey
@ 2008-09-05 14:52 ` Shawn O. Pearce
2008-09-08 2:32 ` Sky Patrick
0 siblings, 1 reply; 5+ messages in thread
From: Shawn O. Pearce @ 2008-09-05 14:52 UTC (permalink / raw)
To: Mike Hommey; +Cc: Sky Patrick, git
Mike Hommey <mh@glandium.org> wrote:
> On Fri, Sep 05, 2008 at 05:22:57PM +0800, Sky Patrick wrote:
> >
> > If i want to write a new protocol for file transfer and would like to
> > to integrate it with git. Is it possible and easy to integrate it ?
> > Currently, i know that jgit may achieve it, but it is a Java
> > implementation and may not work with git command line program that
> > written in C.
Writing a dumb protocol support isn't difficult in JGit due to the
abstractions in place. Its a little harder in C Git, unless Mike
(or someone else) can abstract out the cURL library usage and make
it more flexible. Though these days cURL supports just about any
file transfer protocol known.
> First, it would depend if you need this new protocol to be a dumb
> protocol (like rsync and http) or "native" (git or ssh).
Writing a smart protocol is a PITA. Look at the smart HTTP effort
I am trying to do. OK, I'm not spending a whole lot of time on
it, but its a damn difficult thing to do well, and to keep simple
enough that it can be described and reimplemented. Otherwise we
have another that-thing-before-Git on our hands.
> I've been meaning to refactor the dumb protocol "stack" for a while, but
> haven't gone much further than ideas in my mind (i.e. no code). I also
> have some start of http code recfactoring, that is waiting for this dumb
> protocol rework to be completed.
Yea. One reason why I'm doing the smart HTTP effort prototype in
JGit is because the C code structure makes this harder to implement
without first going through a number of refactorings. Though for the
smart HTTP stuff I really need to refactor fetch-pack/send-pack and
upload-pack/receive-pack, not the dumb walkers.
--
Shawn.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How can i write a new protocol for git
2008-09-05 14:52 ` Shawn O. Pearce
@ 2008-09-08 2:32 ` Sky Patrick
0 siblings, 0 replies; 5+ messages in thread
From: Sky Patrick @ 2008-09-08 2:32 UTC (permalink / raw)
To: Shawn O. Pearce, git
Hi,
The new protocol i mean is the network transfer protocol, like rsync.
Is the word "dumb protocol" you mean is the network transfer protocol
? But seem if i just implement a new protocol using jgit but not in C
(integrate with git core code), it may not worth because more of the
client using git core command line tool as git client.
Thank you ~
Regards,
Patrick
On Fri, Sep 5, 2008 at 10:52 PM, Shawn O. Pearce <spearce@spearce.org> wrote:
> Mike Hommey <mh@glandium.org> wrote:
>> On Fri, Sep 05, 2008 at 05:22:57PM +0800, Sky Patrick wrote:
>> >
>> > If i want to write a new protocol for file transfer and would like to
>> > to integrate it with git. Is it possible and easy to integrate it ?
>> > Currently, i know that jgit may achieve it, but it is a Java
>> > implementation and may not work with git command line program that
>> > written in C.
>
> Writing a dumb protocol support isn't difficult in JGit due to the
> abstractions in place. Its a little harder in C Git, unless Mike
> (or someone else) can abstract out the cURL library usage and make
> it more flexible. Though these days cURL supports just about any
> file transfer protocol known.
>
>> First, it would depend if you need this new protocol to be a dumb
>> protocol (like rsync and http) or "native" (git or ssh).
>
> Writing a smart protocol is a PITA. Look at the smart HTTP effort
> I am trying to do. OK, I'm not spending a whole lot of time on
> it, but its a damn difficult thing to do well, and to keep simple
> enough that it can be described and reimplemented. Otherwise we
> have another that-thing-before-Git on our hands.
>
>> I've been meaning to refactor the dumb protocol "stack" for a while, but
>> haven't gone much further than ideas in my mind (i.e. no code). I also
>> have some start of http code recfactoring, that is waiting for this dumb
>> protocol rework to be completed.
>
> Yea. One reason why I'm doing the smart HTTP effort prototype in
> JGit is because the C code structure makes this harder to implement
> without first going through a number of refactorings. Though for the
> smart HTTP stuff I really need to refactor fetch-pack/send-pack and
> upload-pack/receive-pack, not the dumb walkers.
>
> --
> Shawn.
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-09-08 2:33 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-05 9:22 How can i write a new protocol for git Sky Patrick
2008-09-05 9:38 ` Jakub Narebski
2008-09-05 9:47 ` Mike Hommey
2008-09-05 14:52 ` Shawn O. Pearce
2008-09-08 2:32 ` Sky Patrick
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).