Re: [RFC 14/16] transport-helper: add import|export-marks to fast-import command line.

2012-07-28 Thread Jonathan Nieder
Hi,

Florian Achleitner wrote:

>   a515ebe9.
[...]
> Btw, these added capabilities are not mentioned in Docs.

Sverre, any hints about how these (capabilities "import-marks "
and "export-marks ") are meant to be used?  Why would one use
these instead of "feature import-marks" / "feature export-marks"?
Should there be a corresponding capability for relative-marks, too?

Curious,
Jonathan
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [RFC 14/16] transport-helper: add import|export-marks to fast-import command line.

2012-07-26 Thread Florian Achleitner

I just found that for fast-export something similar was added to transport-
helper in a515ebe9.
By adding a capabilities advertised by the remote helper. Probably that would 
be a nicer way to do that.
Btw, these added capabilities are not mentioned in Docs.

On Thursday 26 July 2012 09:32:35 Florian Achleitner wrote:
> fast-import internally uses marks that refer to an object via its sha1.
> Those marks are created during import to find previously created objects.
> At exit the accumulated marks can be exported to a file and reloaded at
> startup, so that the previous marks are available.
> Add command line options to the fast-import command line to enable this.
> The mark files are stored in info/fast-import/marks/.
> 
> Signed-off-by: Florian Achleitner 
> ---
>  transport-helper.c |3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/transport-helper.c b/transport-helper.c
> index e10fd6b..74f9608 100644
> --- a/transport-helper.c
> +++ b/transport-helper.c
> @@ -394,6 +394,9 @@ static int get_importer(struct transport *transport,
> struct child_process *fasti argv_array_push(argv, "fast-import");
>   argv_array_push(argv, debug ? "--stats" : "--quiet");
>   argv_array_pushf(argv, "--cat-blob-pipe=%s", data->report_fifo);
> + argv_array_push(argv, "--relative-marks");
> + argv_array_pushf(argv, "--import-marks-if-exists=marks/%s",
> transport->remote->name); +   argv_array_pushf(argv,
> "--export-marks=marks/%s", transport->remote->name); fastimport->argv =
> argv->argv;
>   fastimport->git_cmd = 1;
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html