From: Nicolas Pitre Date: Wed, 17 Oct 2007 01:55:47 +0000 (-0400) Subject: pack-objects: no delta possible with only one object in the list X-Git-Tag: v1.5.4-rc0~286^2~16 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2f8b89472cec19a530cb697c4ee20e0ddfd747f6;p=git.git pack-objects: no delta possible with only one object in the list ... so don't even try in that case, and save another useless line of progress display. Signed-off-by: Nicolas Pitre Signed-off-by: Shawn O. Pearce --- diff --git a/builtin-pack-objects.c b/builtin-pack-objects.c index df69abd51..d729cb723 100644 --- a/builtin-pack-objects.c +++ b/builtin-pack-objects.c @@ -1714,7 +1714,7 @@ static void prepare_pack(int window, int depth) delta_list[n++] = entry; } - if (nr_deltas) { + if (nr_deltas && n > 1) { unsigned nr_done = 0; if (progress) start_progress(&progress_state, "Deltifying objects",