[PATCH 3/6] pack-objects: no delta possible with only one object in the list
- From
Nicolas Pitre <nico@cam.org>
- Date
- Oct 17, 2007, 01:55 UTC
- Message-ID
- <1192586150-13743-4-git-send-email-nico@cam.org>
- In-Reply-To
- <1192586150-13743-3-git-send-email-nico@cam.org>
... so don't even try in that case, and save another useless line of progress display.
Signed-off-by: Nicolas Pitre <nico@cam.org> --- builtin-pack-objects.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/builtin-pack-objects.c b/builtin-pack-objects.c index df69abd..d729cb7 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",
-- 1.5.3.4.1212.gdb015