{"thread":{"id":"49466","subject":"git-remote-helper list command question","startedAt":"2018-10-02T09:43:56Z","lastAt":"2018-10-04T04:06:19Z","messageCount":3,"participants":["Stanisław Drozd","Jeff King","Jonathan Nieder"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"359410","messageId":"384e746b-4ca4-1f5e-0c58-accac06ffaf9@gmail.com","threadId":"49466","inReplyTo":"e63531d2-d0d9-7b37-480b-b7f2a40782e4@gmail.com","subject":"git-remote-helper list command question","fromName":"Stanisław Drozd","fromEmail":"drozdziak1@gmail.com","sentAt":"2018-10-02T09:43:50Z","receivedAt":"2018-10-02T09:43:56Z","isPatch":false,"sender":{"key":"drozdziak1@gmail.com","avatar":null},"body":"I'm trying to write a fast-import-based git remote helper, but I'm not sure what the output of the `list` command should look like. How can I find an example of the format in action?\n\nThanks,\nStan\n\n"},{"id":"359418","messageId":"20181002143550.GA24480@sigill.intra.peff.net","threadId":"49466","inReplyTo":"384e746b-4ca4-1f5e-0c58-accac06ffaf9@gmail.com","subject":"Re: git-remote-helper list command question","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2018-10-02T14:35:51Z","receivedAt":"2018-10-02T14:35:54Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Tue, Oct 02, 2018 at 11:43:50AM +0200, Stanisław Drozd wrote:\n\n> I'm trying to write a fast-import-based git remote helper, but I'm not\n> sure what the output of the `list` command should look like. How can I\n> find an example of the format in action?\n\nThere's some documentation in \"git help remote-helpers\".\n\nFor working examples (of this or any other remote-helper stuff), your\nbest bet is the git-remote-http helper that ships with Git. E.g., you\nshould be able to do:\n\n  echo list | git remote-http https://github.com/git/git\n\nto see sample output.\n\n-Peff\n"},{"id":"359601","messageId":"20181004040614.GA165126@aiede.svl.corp.google.com","threadId":"49466","inReplyTo":"20181002143550.GA24480@sigill.intra.peff.net","subject":"Re: git-remote-helper list command question","fromName":"Jonathan Nieder","fromEmail":"jrnieder@gmail.com","sentAt":"2018-10-04T04:06:14Z","receivedAt":"2018-10-04T04:06:19Z","isPatch":false,"sender":{"key":"jrnieder@gmail.com","avatar":"https://avatars.githubusercontent.com/u/281595?v=4"},"body":"Hi,\n\nJeff King wrote:\n> On Tue, Oct 02, 2018 at 11:43:50AM +0200, Stanisław Drozd wrote:\n\n>> I'm trying to write a fast-import-based git remote helper, but I'm not\n>> sure what the output of the `list` command should look like. How can I\n>> find an example of the format in action?\n>\n> There's some documentation in \"git help remote-helpers\".\n>\n> For working examples (of this or any other remote-helper stuff), your\n> best bet is the git-remote-http helper that ships with Git. E.g., you\n> should be able to do:\n>\n>   echo list | git remote-http https://github.com/git/git\n>\n> to see sample output.\n\nOther examples to look at:\n\n git cinnabar <https://github.com/glandium/git-cinnabar>\n\n remote-testsvn.c in git.git (though it will be moving to contrib/ and\n then out of git.git fairly soon)\n\nThese might be more helpful than git-remote-http because they are\nfast-import-based helpers.\n\nThanks and hope that helps,\nJonathan\n"}]}