Code

merge-recur: virtual commits shall never be parsed
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>
Mon, 31 Jul 2006 10:42:35 +0000 (12:42 +0200)
committerJunio C Hamano <junkio@cox.net>
Mon, 31 Jul 2006 22:41:12 +0000 (15:41 -0700)
It would not make sense to parse a virtual commit, therefore set the
"parsed" flag to 1.

Signed-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Junio C Hamano <junkio@cox.net>
merge-recursive.c

index 10bce705fa6a637dda75753504c699dc18da7b90..74a329faa5f35c24bcd61271d635dca26778c19e 100644 (file)
@@ -43,6 +43,8 @@ static struct commit *make_virtual_commit(struct tree *tree, const char *comment
        commit->tree = tree;
        commit->util = (void*)comment;
        *(int*)commit->object.sha1 = virtual_id++;
+       /* avoid warnings */
+       commit->object.parsed = 1;
        return commit;
 }