merge-ort: optionally produce machine-readable output
With the new `detailed` parameter, a new mode can be triggered when displaying the merge messages: The `detailed` mode prints NUL-delimited fields of the following form: <path-count> NUL <path>... NUL <conflict-type> NUL <message> The `<path-count>` field determines how many `<path>` fields there are. The intention of this mode is to support server-side operations, where worktree-less merges can lead to conflicts and depending on the type and/or path count, the caller might know how to handle said conflict. Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
cb2607759e
commit
de90581141
@@ -87,6 +87,7 @@ void merge_switch_to_result(struct merge_options *opt,
|
||||
* so only call this when bypassing merge_switch_to_result().
|
||||
*/
|
||||
void merge_display_update_messages(struct merge_options *opt,
|
||||
int detailed,
|
||||
struct merge_result *result);
|
||||
|
||||
struct stage_info {
|
||||
|
||||
Reference in New Issue
Block a user