summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cdd4fb1)
raw | patch | inline | side by side (parent: cdd4fb1)
author | Junio C Hamano <junkio@cox.net> | |
Tue, 9 Jan 2007 07:10:49 +0000 (23:10 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 9 Jan 2007 07:10:49 +0000 (23:10 -0800) |
Signed-off-by: Junio C Hamano <junkio@cox.net>
commit.c | patch | blob | history |
diff --git a/commit.c b/commit.c
index 9ce45cec25d80bab22ba7267a6e2a58318ac3eeb..496d37aa020871aed111002c2be0380366a70baa 100644 (file)
--- a/commit.c
+++ b/commit.c
free(nodes);
}
-/* merge-rebase stuff */
+/* merge-base stuff */
/* bits #0..15 in revision.h */
#define PARENT1 (1u<<16)
#define STALE (1u<<18)
#define RESULT (1u<<19)
+static const unsigned all_flags = (PARENT1 | PARENT2 | STALE | RESULT);
+
static struct commit *interesting(struct commit_list *list)
{
while (list) {
@@ -1084,6 +1086,7 @@ static struct commit_list *merge_bases(struct commit *one, struct commit *two)
}
/* Clean up the result to remove stale ones */
+ free_commit_list(list);
list = result; result = NULL;
while (list) {
struct commit_list *n = list->next;
struct commit *two,
int cleanup)
{
- const unsigned all_flags = (PARENT1 | PARENT2 | STALE | RESULT);
struct commit_list *list;
struct commit **rslt;
struct commit_list *result;