pack-objects: remove obsolete comments
The sorted-by-sha ans sorted-by-type arrays are no more. Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Nicolas Pitre committed
Apr 19, 2007 at 22:28 UTC
e4d58311ba1a6cefa2ac5a3d95918af0d9b43588
1 file changed
+3
-11
builtin-pack-objects.c
+3
-11
@@ -49,22 +49,15 @@ struct object_entry {
49
* expanded). nr_objects & nr_alloc controls this array. They are stored
50
* in the order we see -- typically rev-list --objects order that gives us
51
* nice "minimum seek" order.
52
- *
53
- * sorted-by-sha ans sorted-by-type are arrays of pointers that point at
54
- * elements in the objects array. The former is used to build the pack
55
- * index (lists object names in the ascending order to help offset lookup),
56
- * and the latter is used to group similar things together by try_delta()
57
- * heuristics.
52
*/
53
+static struct object_entry *objects;
54
+static uint32_t nr_objects, nr_alloc, nr_result;
55
56
static int non_empty;
57
static int no_reuse_delta;
58
static int local;
59
static int incremental;
60
static int allow_ofs_delta;
65
-
66
-static struct object_entry *objects;
67
-static uint32_t nr_objects, nr_alloc, nr_result;
61
static const char *pack_tmp_name, *idx_tmp_name;
62
static char tmpname[PATH_MAX];
63
static unsigned char pack_file_sha1[20];
@@ -76,8 +69,7 @@ static int num_preferred_base;
69
70
/*
71
* The object names in objects array are hashed with this hashtable,
79
- * to help looking up the entry by object name. Binary search from
80
- * sorted_by_sha is also possible but this was easier to code and faster.
72
+ * to help looking up the entry by object name.
73
* This hashtable is built after all the objects are seen.
74
*/
75
static int *object_ix;