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>
Nicolas Pitre committed
Oct 16, 2007 at 21:55 UTC
2f8b89472cec19a530cb697c4ee20e0ddfd747f6
1 file changed
+1
-1
builtin-pack-objects.c
+1
-1
@@ -1714,7 +1714,7 @@ static void prepare_pack(int window, int depth)
1714
delta_list[n++] = entry;
1715
}
1716
1717
- if (nr_deltas) {
1717
+ if (nr_deltas && n > 1) {
1718
unsigned nr_done = 0;
1719
if (progress)
1720
start_progress(&progress_state, "Deltifying objects",