Skip to content

Commit dab1c0d

Browse files
newrenderrickstolee
authored andcommitted
Update error message and code comment
There were two locations in the code that referred to 'merge-recursive' but which were also applicable to 'merge-ort'. Update them to more general wording. Signed-off-by: Elijah Newren <[email protected]>
1 parent ef8fa51 commit dab1c0d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

builtin/merge.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ static int try_merge_strategy(const char *strategy, struct commit_list *common,
739739

740740
for (x = 0; x < xopts_nr; x++)
741741
if (parse_merge_opt(&o, xopts[x]))
742-
die(_("Unknown option for merge-recursive: -X%s"), xopts[x]);
742+
die(_("unknown strategy option: -X%s"), xopts[x]);
743743

744744
o.branch1 = head_arg;
745745
o.branch2 = merge_remote_util(remoteheads->item)->name;

sequencer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2065,7 +2065,7 @@ static int do_pick_commit(struct repository *r,
20652065
/*
20662066
* We do not intend to commit immediately. We just want to
20672067
* merge the differences in, so let's compute the tree
2068-
* that represents the "current" state for merge-recursive
2068+
* that represents the "current" state for the merge machinery
20692069
* to work on.
20702070
*/
20712071
if (write_index_as_tree(&head, r->index, r->index_file, 0, NULL))

0 commit comments

Comments
 (0)