When debug==1, start fast-import with "--stats" instead of "--quiet"
authorFlorian Achleitner <florian.achleitner.2.6.31@gmail.com>
Wed, 19 Sep 2012 15:21:21 +0000 (17:21 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 7 Oct 2012 21:10:17 +0000 (14:10 -0700)
fast-import prints statistics that could be interesting to the
developer of remote helpers.

Signed-off-by: Florian Achleitner <florian.achleitner.2.6.31@gmail.com>
Acked-by: David Michael Barr <b@rr-dav.id.au>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
transport-helper.c

index 3523f1ff56b9cde4ccaf4bd75686bb4a69318c39..4713b6930248d961824c9f867b10340e6278132f 100644 (file)
@@ -385,7 +385,7 @@ static int get_importer(struct transport *transport, struct child_process *fasti
        memset(fastimport, 0, sizeof(*fastimport));
        fastimport->in = helper->out;
        argv_array_push(&argv, "fast-import");
-       argv_array_push(&argv, "--quiet");
+       argv_array_push(&argv, debug ? "--stats" : "--quiet");
 
        if (data->bidi_import) {
                cat_blob_fd = xdup(helper->in);