[PATCH 3/6] pack-objects: no delta possible with only one object in the list

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Shawn O. Pearce <spearce@...>
Cc: <git@...>
Date: Tuesday, October 16, 2007 - 9:55 pm

... 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

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/6] miscelaneous stuff, Nicolas Pitre, (Tue Oct 16, 9:55 pm)
[PATCH 1/6] more compact progress display, Nicolas Pitre, (Tue Oct 16, 9:55 pm)
Re: [PATCH 1/6] more compact progress display, Johannes Sixt, (Wed Oct 17, 2:34 am)
Re: [PATCH 1/6] more compact progress display, Shawn O. Pearce, (Wed Oct 17, 2:37 am)
Re: [PATCH 1/6] more compact progress display, Shawn O. Pearce, (Tue Oct 16, 10:11 pm)
Re: [PATCH 1/6] more compact progress display, Karl , (Wed Oct 17, 4:20 am)
Re: [PATCH 1/6] more compact progress display, Nicolas Pitre, (Wed Oct 17, 4:56 pm)
Re: [PATCH 1/6] more compact progress display, Karl , (Thu Oct 18, 4:34 am)
Re: [PATCH 1/6] more compact progress display, Shawn O. Pearce, (Thu Oct 18, 12:58 am)
Re: [PATCH 1/6] more compact progress display, Nicolas Pitre, (Tue Oct 16, 10:24 pm)
[PATCH 3/6] pack-objects: no delta possible with only one ob..., Nicolas Pitre, (Tue Oct 16, 9:55 pm)