diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-06-13 12:53:06 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-06-13 12:53:06 -0700 |
commit | cec3f989dab861761ad83e264c3cd8a754e4ace5 (patch) | |
tree | 77d70522bba442ac57625483a4dcbbbce078c222 /commit.c | |
parent | fa71e80525d36ecd911bd0aca87ceb515babd1e9 (diff) | |
parent | a66037c9755a2beb49bbd915e6f0dd9b1a732925 (diff) | |
download | git-cec3f989dab861761ad83e264c3cd8a754e4ace5.tar.gz |
Merge branch 'cc/bisect' (early part)
* 'cc/bisect' (early part):
t6030: test skipping away from an already skipped commit
bisect: when skipping, choose a commit away from a skipped commit
bisect: add parameters to "filter_skipped"
bisect: display first bad commit without forking a new process
bisect: drop unparse_commit() and use clear_commit_marks()
Diffstat (limited to 'commit.c')
-rw-r--r-- | commit.c | 20 |
1 files changed, 0 insertions, 20 deletions
@@ -316,26 +316,6 @@ int parse_commit(struct commit *item) return ret; } -static void unparse_commit_list(struct commit_list *list) -{ - for (; list; list = list->next) - unparse_commit(list->item); -} - -void unparse_commit(struct commit *item) -{ - item->object.flags = 0; - item->object.used = 0; - if (item->object.parsed) { - item->object.parsed = 0; - if (item->parents) { - unparse_commit_list(item->parents); - free_commit_list(item->parents); - item->parents = NULL; - } - } -} - struct commit_list *commit_list_insert(struct commit *item, struct commit_list **list_p) { struct commit_list *new_list = xmalloc(sizeof(struct commit_list)); |