Skip to content

Commit c749ab1

Browse files
newrengitster
authored andcommitted
merge-recursive: rename merge_options argument to opt in header
In commit 259ccb6 ("merge-recursive: rename merge_options argument from 'o' to 'opt'", 2019-04-05), I renamed a bunch of function arguments in merge-recursive.c, but forgot to make that same change to merge-recursive.h. Make the two match. Signed-off-by: Elijah Newren <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent bab5687 commit c749ab1

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

merge-recursive.h

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,10 +68,10 @@ struct collision_entry {
6868
unsigned reported_already:1;
6969
};
7070

71-
static inline int merge_detect_rename(struct merge_options *o)
71+
static inline int merge_detect_rename(struct merge_options *opt)
7272
{
73-
return o->merge_detect_rename >= 0 ? o->merge_detect_rename :
74-
o->diff_detect_rename >= 0 ? o->diff_detect_rename : 1;
73+
return opt->merge_detect_rename >= 0 ? opt->merge_detect_rename :
74+
opt->diff_detect_rename >= 0 ? opt->diff_detect_rename : 1;
7575
}
7676

7777
/*
@@ -85,7 +85,7 @@ static inline int merge_detect_rename(struct merge_options *o)
8585
* commit. Also, merge_bases will be consumed (emptied) so make a
8686
* copy if you need it.
8787
*/
88-
int merge_recursive(struct merge_options *o,
88+
int merge_recursive(struct merge_options *opt,
8989
struct commit *h1,
9090
struct commit *h2,
9191
struct commit_list *merge_bases,
@@ -95,7 +95,7 @@ int merge_recursive(struct merge_options *o,
9595
* rename-detecting three-way merge, no recursion; result of merge is written
9696
* to opt->repo->index.
9797
*/
98-
int merge_trees(struct merge_options *o,
98+
int merge_trees(struct merge_options *opt,
9999
struct tree *head,
100100
struct tree *merge,
101101
struct tree *merge_base);
@@ -104,16 +104,16 @@ int merge_trees(struct merge_options *o,
104104
* "git-merge-recursive" can be fed trees; wrap them into
105105
* virtual commits and call merge_recursive() proper.
106106
*/
107-
int merge_recursive_generic(struct merge_options *o,
107+
int merge_recursive_generic(struct merge_options *opt,
108108
const struct object_id *head,
109109
const struct object_id *merge,
110110
int num_merge_bases,
111111
const struct object_id **merge_bases,
112112
struct commit **result);
113113

114-
void init_merge_options(struct merge_options *o,
114+
void init_merge_options(struct merge_options *opt,
115115
struct repository *repo);
116116

117-
int parse_merge_opt(struct merge_options *out, const char *s);
117+
int parse_merge_opt(struct merge_options *opt, const char *s);
118118

119119
#endif

0 commit comments

Comments
 (0)