# git-remote-helper list command question

3 messages from 2018-10-02 to 2018-10-04. Participants: Stanisław Drozd, Jeff King, Jonathan Nieder.
Thread: https://gitlist.dev/t/49466

## Stanisław Drozd, 2018-10-02 09:43

Subject: git-remote-helper list command question
Message-ID: <384e746b-4ca4-1f5e-0c58-accac06ffaf9@gmail.com>
URL: https://gitlist.dev/e/384e746b-4ca4-1f5e-0c58-accac06ffaf9%40gmail.com
In-Reply-To: <e63531d2-d0d9-7b37-480b-b7f2a40782e4@gmail.com>

```
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?

Thanks,
Stan


```

## Jeff King, 2018-10-02 14:35

Subject: Re: git-remote-helper list command question
Message-ID: <20181002143550.GA24480@sigill.intra.peff.net>
URL: https://gitlist.dev/e/20181002143550.GA24480%40sigill.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

```

## Jonathan Nieder, 2018-10-04 04:06

Subject: Re: git-remote-helper list command question
Message-ID: <20181004040614.GA165126@aiede.svl.corp.google.com>
URL: https://gitlist.dev/e/20181004040614.GA165126%40aiede.svl.corp.google.com
In-Reply-To: <20181002143550.GA24480@sigill.intra.peff.net>

```
Hi,

Jeff King wrote:
> 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.

Other examples to look at:

 git cinnabar <https://github.com/glandium/git-cinnabar>

 remote-testsvn.c in git.git (though it will be moving to contrib/ and
 then out of git.git fairly soon)

These might be more helpful than git-remote-http because they are
fast-import-based helpers.

Thanks and hope that helps,
Jonathan

```
