summaryrefslogtreecommitdiff
path: root/commit.c
diff options
context:
space:
mode:
authorMartin Koegler <mkoegler@auto.tuwien.ac.at>2008-02-25 22:46:06 +0100
committerJunio C Hamano <gitster@pobox.com>2008-02-25 23:57:35 -0800
commit7914053ba9901be1f1530f46e8e2e6ee6f4ae5b1 (patch)
treeb8ea9161af89a50853b30a6666762d26576b4932 /commit.c
parent271b8d25b25e49b367087440e093e755e5f35aa9 (diff)
downloadgit-7914053ba9901be1f1530f46e8e2e6ee6f4ae5b1.tar.gz
Remove unused object-ref code
Signed-off-by: Martin Koegler <mkoegler@auto.tuwien.ac.at> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
-rw-r--r--commit.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/commit.c b/commit.c
index 22ce776863..6684c4e731 100644
--- a/commit.c
+++ b/commit.c
@@ -290,17 +290,6 @@ int parse_commit_buffer(struct commit *item, void *buffer, unsigned long size)
}
item->date = parse_commit_date(bufptr, tail);
- if (track_object_refs) {
- unsigned i = 0;
- struct commit_list *p;
- struct object_refs *refs = alloc_object_refs(n_refs);
- if (item->tree)
- refs->ref[i++] = &item->tree->object;
- for (p = item->parents; p; p = p->next)
- refs->ref[i++] = &p->item->object;
- set_object_refs(&item->object, refs);
- }
-
return 0;
}