зеркало из https://github.com/microsoft/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 <nico@cam.org> Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
This commit is contained in:
Родитель
ed1902ef5c
Коммит
2f8b89472c
|
@ -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",
|
||||||
|
|
Загрузка…
Ссылка в новой задаче