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

Re: git-remote-helper list command question

From
Jeff King <peff@peff.net>
Date
Oct 2, 2018, 14:35 UTC
Message-ID
<20181002143550.GA24480@sigill.intra.peff.net>
In-Reply-To
<384e746b-4ca4-1f5e-0c58-accac06ffaf9@gmail.com>
On Tue, Oct 02, 2018 at 11:43:50AM +0200, Stanisław Drozd wrote:
> 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?
There's some documentation in "git help remote-helpers".

For working examples (of this or any other remote-helper stuff), your best bet is the git-remote-http helper that ships with Git. E.g., you should be able to do:

  echo list | git remote-http https://github.com/git/git
to see sample output.
-Peff
Previous: Stanisław DrozdNext: Jonathan Nieder
Message 2 of 3 in “git-remote-helper list command question”
  1. Stanisław DrozdOct 2, 2018
  2. Jeff KingOct 2, 2018
  3. Jonathan NiederOct 4, 2018

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.