Skip to content

Commit c674d05

Browse files
chriscoolgitster
authored andcommitted
merge: make function try_merge_command non static
Signed-off-by: Christian Couder <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 3f9083c commit c674d05

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

builtin/merge.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -548,8 +548,8 @@ static void write_tree_trivial(unsigned char *sha1)
548548
die("git write-tree failed to write a tree");
549549
}
550550

551-
static int try_merge_command(const char *strategy, struct commit_list *common,
552-
const char *head_arg, struct commit_list *remotes)
551+
int try_merge_command(const char *strategy, struct commit_list *common,
552+
const char *head_arg, struct commit_list *remotes)
553553
{
554554
const char **args;
555555
int i = 0, x = 0, ret;

merge-recursive.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,7 @@ int merge_recursive_generic(struct merge_options *o,
5454
void init_merge_options(struct merge_options *o);
5555
struct tree *write_tree_from_memory(struct merge_options *o);
5656

57+
/* builtin/merge.c */
58+
int try_merge_command(const char *strategy, struct commit_list *common, const char *head_arg, struct commit_list *remotes);
59+
5760
#endif

0 commit comments

Comments
 (0)