Then something like this?
---
diff --git a/pack-objects.c b/pack-objects.c
index a62c9f8..c27fee5 100644
--- a/pack-objects.c
+++ b/pack-objects.c
@@ -296,7 +296,7 @@ static int type_size_sort(const struct o
return -1;
if (a->size > b->size)
return 1;
- return a < b ? -1 : (a > b);
+ return memcmp(a->sha1, b->sha1, 20);
}
struct unpacked {
-
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