From: Junio C Hamano Date: Wed, 15 Aug 2012 19:52:43 GMT Subject: Re: [PATCH/RFC v3 14/16] transport-helper: add import|export-marks to fast-import command line. Message-ID: <7vsjbo3pbo.fsf@alter.siamese.dyndns.org> In-Reply-To: <1344971598-8213-15-git-send-email-florian.achleitner.2.6.31@gmail.com> Florian Achleitner writes: > 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 7fb52d4..47db055 100644 > --- a/transport-helper.c > +++ b/transport-helper.c > @@ -387,6 +387,9 @@ static int get_importer(struct transport *transport, struct child_process *fasti > fastimport->in = helper->out; > argv_array_push(&argv, "fast-import"); > argv_array_push(&argv, debug ? "--stats" : "--quiet"); > + 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); Is this something we want to do unconditionally?