summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f13d7db)
raw | patch | inline | side by side (parent: f13d7db)
author | Junio C Hamano <junkio@cox.net> | |
Mon, 5 Dec 2005 19:12:01 +0000 (11:12 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Mon, 5 Dec 2005 19:12:01 +0000 (11:12 -0800) |
Signed-off-by: Junio C Hamano <junkio@cox.net>
server-info.c | patch | blob | history |
diff --git a/server-info.c b/server-info.c
index 7b214c8138afa7ff8f3a274235c6be5dac32ef07..7d7bcb2188e8f4a65f83a4693220864d0a255951 100644 (file)
--- a/server-info.c
+++ b/server-info.c
static const char *objdir;
static int objdirlen;
-static struct object *parse_object_cheap(const unsigned char *sha1)
-{
- struct object *o;
-
- if ((o = parse_object(sha1)) == NULL)
- return NULL;
- if (o->type == commit_type) {
- struct commit *commit = (struct commit *)o;
- free(commit->buffer);
- commit->buffer = NULL;
- } else if (o->type == tree_type) {
- struct tree *tree = (struct tree *)o;
- struct tree_entry_list *e, *n;
- for (e = tree->entries; e; e = n) {
- free(e->name);
- e->name = NULL;
- n = e->next;
- free(e);
- }
- tree->entries = NULL;
- }
- return o;
-}
-
static struct pack_info *find_pack_by_name(const char *name)
{
int i;
return NULL;
}
-static struct pack_info *find_pack_by_old_num(int old_num)
-{
- int i;
- for (i = 0; i < num_pack; i++)
- if (info[i]->old_num == old_num)
- return info[i];
- return NULL;
-}
-
/* Returns non-zero when we detect that the info in the
* old file is useless.
*/