Re: remote helper example with push/fetch capabilities

2015-01-14 Thread Andrew Mackenzie
I'm interested in doing something very similar (not to S3, but to a customer CMS repository), but have found it very difficult to find any documentation or good example code on git-remote-helpers. If you can share any learnings or references I would really appreciate it! thanks, Andrew -- To u

Re: remote helper example with push/fetch capabilities

2014-12-18 Thread Klein W
Would someone be willing to extend the git-remote-testgit.sh example [1] with push and fetch capabilities? I am not familiar enough to do it myself. Thanks [1] https://github.com/git/git/blob/master/git-remote-testgit.sh -- To unsubscribe from this list: send the line "unsubscribe git" in the bo

Re: remote helper example with push/fetch capabilities

2014-12-15 Thread Klein W
On Mon, Dec 15, 2014 at 4:44 PM, Jonathan Nieder wrote: >> I'm trying to write a remote helper for hosting git remotes on Amazon >> S3. Do you have any intuition about which capabilities would work >> best for this case? > > fetch/push. I'd suggest looking at the "dumb" HTTP code (fetch_dumb, >

Re: remote helper example with push/fetch capabilities

2014-12-15 Thread Junio C Hamano
Klein W writes: > Is there any example of a remote helper [0] with push and fetch capabilities? > > The git-remote-testgit.sh example [1] only has import/export capabilities. > > Also, what are the advantages and disadvantages of a remote helper > with push/fetch capabilities vs a remote helper w

Re: remote helper example with push/fetch capabilities

2014-12-15 Thread Jonathan Nieder
Klein W wrote: > On Mon, Dec 15, 2014 at 3:47 PM, Jonathan Nieder wrote: >> It mainly has to do with what it is convenient for your helper to >> produce. If the helper would find it more convenient to write native >> git objects (for example because the remote server speaks a >> git-specific pro

Re: remote helper example with push/fetch capabilities

2014-12-15 Thread Klein W
On Mon, Dec 15, 2014 at 3:47 PM, Jonathan Nieder wrote: > Sure --- see remote-curl.c. > > There's also the "connect" capability. builtin/remote-ext.c and > builtin/remote-fd.c are examples using that one. Thanks. >> Also, what are the advantages and disadvantages of a remote helper >> with push

Re: remote helper example with push/fetch capabilities

2014-12-15 Thread Jonathan Nieder
Hi, Klein W wrote: > Is there any example of a remote helper [0] with push and fetch capabilities? Sure --- see remote-curl.c. There's also the "connect" capability. builtin/remote-ext.c and builtin/remote-fd.c are examples using that one. [...] > Also, what are the advantages and disadvantag

remote helper example with push/fetch capabilities

2014-12-15 Thread Klein W
Is there any example of a remote helper [0] with push and fetch capabilities? The git-remote-testgit.sh example [1] only has import/export capabilities. Also, what are the advantages and disadvantages of a remote helper with push/fetch capabilities vs a remote helper with import/export capabiliti