Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
reduce_heads(): thinkofix
[gitweb.git]
/
commit.c
diff --git
a/commit.c
b/commit.c
index d20b14ee3efa7167070767aae0d130a978fac401..03e73f323ae082fac9f127900eede7aa3952dc44 100644
(file)
--- a/
commit.c
+++ b/
commit.c
@@
-747,7
+747,7
@@
struct commit_list *reduce_heads(struct commit_list *heads)
num_other = 0;
for (q = heads; q; q = q->next) {
- if (p
== q
)
+ if (p
->item == q->item
)
continue;
other[num_other++] = q->item;
}