mirror of
https://github.com/git/git.git
synced 2025-01-21 06:53:30 +08:00
merge.h: move declarations for merge.c from cache.h
Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
eaa966db79
commit
750324ddb8
@ -37,6 +37,7 @@
|
||||
#include "color.h"
|
||||
#include "rerere.h"
|
||||
#include "help.h"
|
||||
#include "merge.h"
|
||||
#include "merge-recursive.h"
|
||||
#include "merge-ort-wrappers.h"
|
||||
#include "resolve-undo.h"
|
||||
|
@ -12,6 +12,7 @@
|
||||
#include "builtin.h"
|
||||
#include "gettext.h"
|
||||
#include "hex.h"
|
||||
#include "merge.h"
|
||||
#include "object-name.h"
|
||||
#include "parse-options.h"
|
||||
#include "exec-cmd.h"
|
||||
|
11
cache.h
11
cache.h
@ -527,15 +527,4 @@ int add_files_to_cache(struct repository *repo, const char *prefix,
|
||||
void overlay_tree_on_index(struct index_state *istate,
|
||||
const char *tree_name, const char *prefix);
|
||||
|
||||
/* merge.c */
|
||||
struct commit_list;
|
||||
int try_merge_command(struct repository *r,
|
||||
const char *strategy, size_t xopts_nr,
|
||||
const char **xopts, struct commit_list *common,
|
||||
const char *head_arg, struct commit_list *remotes);
|
||||
int checkout_fast_forward(struct repository *r,
|
||||
const struct object_id *from,
|
||||
const struct object_id *to,
|
||||
int overwrite_ignore);
|
||||
|
||||
#endif /* CACHE_H */
|
||||
|
1
merge.c
1
merge.c
@ -4,6 +4,7 @@
|
||||
#include "gettext.h"
|
||||
#include "hex.h"
|
||||
#include "lockfile.h"
|
||||
#include "merge.h"
|
||||
#include "commit.h"
|
||||
#include "run-command.h"
|
||||
#include "resolve-undo.h"
|
||||
|
17
merge.h
Normal file
17
merge.h
Normal file
@ -0,0 +1,17 @@
|
||||
#ifndef MERGE_H
|
||||
#define MERGE_H
|
||||
|
||||
struct commit_list;
|
||||
struct object_id;
|
||||
struct repository;
|
||||
|
||||
int try_merge_command(struct repository *r,
|
||||
const char *strategy, size_t xopts_nr,
|
||||
const char **xopts, struct commit_list *common,
|
||||
const char *head_arg, struct commit_list *remotes);
|
||||
int checkout_fast_forward(struct repository *r,
|
||||
const struct object_id *from,
|
||||
const struct object_id *to,
|
||||
int overwrite_ignore);
|
||||
|
||||
#endif /* MERGE_H */
|
@ -25,6 +25,7 @@
|
||||
#include "diff.h"
|
||||
#include "revision.h"
|
||||
#include "rerere.h"
|
||||
#include "merge.h"
|
||||
#include "merge-ort.h"
|
||||
#include "merge-ort-wrappers.h"
|
||||
#include "refs.h"
|
||||
|
Loading…
Reference in New Issue
Block a user