Build in merge
Mentored-by: Johannes Schindelin <Johannes.Schindelin@gmx.de> Signed-off-by: Miklos Vajna <vmiklos@frugalware.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
1c6669351a
commit
1c7b76be7d
2
Makefile
2
Makefile
@ -240,7 +240,6 @@ SCRIPT_SH += git-lost-found.sh
|
|||||||
SCRIPT_SH += git-merge-octopus.sh
|
SCRIPT_SH += git-merge-octopus.sh
|
||||||
SCRIPT_SH += git-merge-one-file.sh
|
SCRIPT_SH += git-merge-one-file.sh
|
||||||
SCRIPT_SH += git-merge-resolve.sh
|
SCRIPT_SH += git-merge-resolve.sh
|
||||||
SCRIPT_SH += git-merge.sh
|
|
||||||
SCRIPT_SH += git-merge-stupid.sh
|
SCRIPT_SH += git-merge-stupid.sh
|
||||||
SCRIPT_SH += git-mergetool.sh
|
SCRIPT_SH += git-mergetool.sh
|
||||||
SCRIPT_SH += git-parse-remote.sh
|
SCRIPT_SH += git-parse-remote.sh
|
||||||
@ -515,6 +514,7 @@ BUILTIN_OBJS += builtin-ls-remote.o
|
|||||||
BUILTIN_OBJS += builtin-ls-tree.o
|
BUILTIN_OBJS += builtin-ls-tree.o
|
||||||
BUILTIN_OBJS += builtin-mailinfo.o
|
BUILTIN_OBJS += builtin-mailinfo.o
|
||||||
BUILTIN_OBJS += builtin-mailsplit.o
|
BUILTIN_OBJS += builtin-mailsplit.o
|
||||||
|
BUILTIN_OBJS += builtin-merge.o
|
||||||
BUILTIN_OBJS += builtin-merge-base.o
|
BUILTIN_OBJS += builtin-merge-base.o
|
||||||
BUILTIN_OBJS += builtin-merge-file.o
|
BUILTIN_OBJS += builtin-merge-file.o
|
||||||
BUILTIN_OBJS += builtin-merge-ours.o
|
BUILTIN_OBJS += builtin-merge-ours.o
|
||||||
|
1153
builtin-merge.c
Normal file
1153
builtin-merge.c
Normal file
File diff suppressed because it is too large
Load Diff
@ -64,6 +64,7 @@ extern int cmd_ls_tree(int argc, const char **argv, const char *prefix);
|
|||||||
extern int cmd_ls_remote(int argc, const char **argv, const char *prefix);
|
extern int cmd_ls_remote(int argc, const char **argv, const char *prefix);
|
||||||
extern int cmd_mailinfo(int argc, const char **argv, const char *prefix);
|
extern int cmd_mailinfo(int argc, const char **argv, const char *prefix);
|
||||||
extern int cmd_mailsplit(int argc, const char **argv, const char *prefix);
|
extern int cmd_mailsplit(int argc, const char **argv, const char *prefix);
|
||||||
|
extern int cmd_merge(int argc, const char **argv, const char *prefix);
|
||||||
extern int cmd_merge_base(int argc, const char **argv, const char *prefix);
|
extern int cmd_merge_base(int argc, const char **argv, const char *prefix);
|
||||||
extern int cmd_merge_ours(int argc, const char **argv, const char *prefix);
|
extern int cmd_merge_ours(int argc, const char **argv, const char *prefix);
|
||||||
extern int cmd_merge_file(int argc, const char **argv, const char *prefix);
|
extern int cmd_merge_file(int argc, const char **argv, const char *prefix);
|
||||||
|
1
git.c
1
git.c
@ -271,6 +271,7 @@ static void handle_internal_command(int argc, const char **argv)
|
|||||||
{ "ls-remote", cmd_ls_remote },
|
{ "ls-remote", cmd_ls_remote },
|
||||||
{ "mailinfo", cmd_mailinfo },
|
{ "mailinfo", cmd_mailinfo },
|
||||||
{ "mailsplit", cmd_mailsplit },
|
{ "mailsplit", cmd_mailsplit },
|
||||||
|
{ "merge", cmd_merge, RUN_SETUP | NEED_WORK_TREE },
|
||||||
{ "merge-base", cmd_merge_base, RUN_SETUP },
|
{ "merge-base", cmd_merge_base, RUN_SETUP },
|
||||||
{ "merge-file", cmd_merge_file },
|
{ "merge-file", cmd_merge_file },
|
||||||
{ "merge-ours", cmd_merge_ours, RUN_SETUP },
|
{ "merge-ours", cmd_merge_ours, RUN_SETUP },
|
||||||
|
@ -23,7 +23,7 @@ test_expect_success 'setup' '
|
|||||||
done
|
done
|
||||||
'
|
'
|
||||||
|
|
||||||
test_expect_failure 'merge c1 with c2, c3, c4, ... c29' '
|
test_expect_success 'merge c1 with c2, c3, c4, ... c29' '
|
||||||
git reset --hard c1 &&
|
git reset --hard c1 &&
|
||||||
i=2 &&
|
i=2 &&
|
||||||
refs="" &&
|
refs="" &&
|
||||||
|
Loading…
Reference in New Issue
Block a user