projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed1902e
)
pack-objects: no delta possible with only one object in the list
author
Nicolas Pitre
<nico@cam.org>
Wed, 17 Oct 2007 01:55:47 +0000
(21:55 -0400)
committer
Shawn O. Pearce
<spearce@spearce.org>
Wed, 17 Oct 2007 06:54:56 +0000
(
02:54
-0400)
... 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>
builtin-pack-objects.c
patch
|
blob
|
history
diff --git
a/builtin-pack-objects.c
b/builtin-pack-objects.c
index df69abd514dddd5d1bf69b341536f75407d780ab..d729cb7237601133c2b60d6be40f0bb031dcf366 100644
(file)
--- 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",