Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
pack-objects: equal objects in size should delta against newer objects
[gitweb.git]
/
builtin-pack-objects.c
diff --git
a/builtin-pack-objects.c
b/builtin-pack-objects.c
index 62a011e2e92a57ebbdb5a99e796013bedfa6cd8d..869ca1ab269859c6e23676f329e8c59e4f6aeb20 100644
(file)
--- a/
builtin-pack-objects.c
+++ b/
builtin-pack-objects.c
@@
-1276,7
+1276,7
@@
static int type_size_sort(const struct object_entry *a, const struct object_entr
return -1;
if (a->size > b->size)
return 1;
- return a
< b ? -1 : (a > b);
+ return a
> b ? -1 : (a < b); /* newest last */
}
struct unpacked {