diff --git a/notes-merge.c b/notes-merge.c
index 459b1c2bf2c4e8a849f9860430bc643a6152b9f5..1467ad31795ae21896f1e608e7cb032df2bc94a8 100644 (file)
--- a/notes-merge.c
+++ b/notes-merge.c
die("failed to concatenate notes "
"(combine_notes_concatenate)");
return 0;
+ case NOTES_MERGE_RESOLVE_CAT_SORT_UNIQ:
+ OUTPUT(o, 2, "Concatenating unique lines in local and remote "
+ "notes for %s", sha1_to_hex(p->obj));
+ if (add_note(t, p->obj, p->remote, combine_notes_cat_sort_uniq))
+ die("failed to concatenate notes "
+ "(combine_notes_cat_sort_uniq)");
+ return 0;
}
die("Unknown strategy (%i).", o->strategy);
}
bases = get_merge_bases(local, remote, 1);
if (!bases) {
base_sha1 = null_sha1;
- base_tree_sha1 = (unsigned char *)EMPTY_TREE_SHA1_BIN;
+ base_tree_sha1 = EMPTY_TREE_SHA1_BIN;
OUTPUT(o, 4, "No merge base found; doing history-less merge");
} else if (!bases->next) {
base_sha1 = bases->item->object.sha1;