Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
merge-recur: virtual commits shall never be parsed
author
Johannes Schindelin
<Johannes.Schindelin@gmx.de>
Mon, 31 Jul 2006 10:42:35 +0000
(12:42 +0200)
committer
Junio 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
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(from parent 1:
7a85b84
)
diff --git
a/merge-recursive.c
b/merge-recursive.c
index 10bce705fa6a637dda75753504c699dc18da7b90..74a329faa5f35c24bcd61271d635dca26778c19e 100644
(file)
--- a/
merge-recursive.c
+++ b/
merge-recursive.c
@@
-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;
}