mirror of
https://github.com/git/git
synced 2024-08-27 03:29:21 +00:00
9047ebbc22
Move most of the of code from builtin-merge-recursive.c to a new file merge-recursive.c and introduce merge_recursive_setup() in there so that builtin-merge-recursive and other builtins call it. Signed-off-by: Miklos Vajna <vmiklos@frugalware.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
25 lines
681 B
C
25 lines
681 B
C
#ifndef MERGE_RECURSIVE_H
|
|
#define MERGE_RECURSIVE_H
|
|
|
|
int merge_recursive(struct commit *h1,
|
|
struct commit *h2,
|
|
const char *branch1,
|
|
const char *branch2,
|
|
struct commit_list *ancestors,
|
|
struct commit **result);
|
|
|
|
int merge_trees(struct tree *head,
|
|
struct tree *merge,
|
|
struct tree *common,
|
|
const char *branch1,
|
|
const char *branch2,
|
|
struct tree **result);
|
|
struct commit *make_virtual_commit(struct tree *tree, const char *comment);
|
|
int merge_recursive_config(const char *var, const char *value, void *cb);
|
|
void merge_recursive_setup(int is_subtree_merge);
|
|
struct tree *write_tree_from_memory(void);
|
|
|
|
extern int merge_recursive_verbosity;
|
|
|
|
#endif
|