Remove bogus dup commit warning with --merge-order
It makes gitk unhappy, and besides, non-merge-order doesn't complain, so why do it here..
This commit is contained in:
parent
36f8d17445
commit
ad6ce07c44
5
epoch.c
5
epoch.c
@ -586,10 +586,7 @@ int sort_list_in_merge_order(struct commit_list *list, emitter_func emitter)
|
|||||||
struct commit *next = list->item;
|
struct commit *next = list->item;
|
||||||
|
|
||||||
if (!(next->object.flags & UNINTERESTING)) {
|
if (!(next->object.flags & UNINTERESTING)) {
|
||||||
if (next->object.flags & DUPCHECK) {
|
if (!(next->object.flags & DUPCHECK)) {
|
||||||
fprintf(stderr, "%s: duplicate commit %s ignored\n",
|
|
||||||
__FUNCTION__, sha1_to_hex(next->object.sha1));
|
|
||||||
} else {
|
|
||||||
next->object.flags |= DUPCHECK;
|
next->object.flags |= DUPCHECK;
|
||||||
commit_list_insert(list->item, &reversed);
|
commit_list_insert(list->item, &reversed);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user