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 <nico@cam.org>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This commit is contained in:
Nicolas Pitre 2007-10-16 21:55:47 -04:00 коммит произвёл Shawn O. Pearce
Родитель ed1902ef5c
Коммит 2f8b89472c
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -1714,7 +1714,7 @@ static void prepare_pack(int window, int depth)
delta_list[n++] = entry; delta_list[n++] = entry;
} }
if (nr_deltas) { if (nr_deltas && n > 1) {
unsigned nr_done = 0; unsigned nr_done = 0;
if (progress) if (progress)
start_progress(&progress_state, "Deltifying objects", start_progress(&progress_state, "Deltifying objects",