summaryrefslogtreecommitdiff
path: root/builtin-pack-objects.c
diff options
context:
space:
mode:
authorNicolas Pitre <nico@cam.org>2007-10-16 21:55:47 -0400
committerShawn O. Pearce <spearce@spearce.org>2007-10-17 02:54:56 -0400
commit2f8b89472cec19a530cb697c4ee20e0ddfd747f6 (patch)
treed593ca57156cc3c59f631ab02bff146bb5061dda /builtin-pack-objects.c
parented1902ef5c6a30942def50809b52e41fbdcdf13f (diff)
downloadgit-2f8b89472cec19a530cb697c4ee20e0ddfd747f6.tar.gz
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>
Diffstat (limited to 'builtin-pack-objects.c')
-rw-r--r--builtin-pack-objects.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin-pack-objects.c b/builtin-pack-objects.c
index df69abd514..d729cb7237 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",