diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-06-25 13:22:36 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-06-25 13:22:36 -0700 |
commit | a856e7d69f51776e40633d6f1f1f38a7fd64f0d5 (patch) | |
tree | 33e27e4586004e0ef097f98a83e0fb359b9d637f /builtin | |
parent | Merge branch 'nd/commit-util-to-slab' (diff) | |
parent | commit-graph: fix UX issue when .lock file exists (diff) | |
download | tgif-a856e7d69f51776e40633d6f1f1f38a7fd64f0d5.tar.xz |
Merge branch 'ds/commit-graph-lockfile-fix'
Update to ds/generation-numbers topic.
* ds/commit-graph-lockfile-fix:
commit-graph: fix UX issue when .lock file exists
commit-graph.txt: update design document
merge: check config before loading commits
commit: use generation number in remove_redundant()
commit: add short-circuit to paint_down_to_common()
commit: use generation numbers for in_merge_bases()
ref-filter: use generation number for --contains
commit-graph: always load commit-graph information
commit: use generations in paint_down_to_common()
commit-graph: compute generation numbers
commit: add generation number to struct commit
ref-filter: fix outdated comment on in_commit_list
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/merge.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/builtin/merge.c b/builtin/merge.c index fb4faca250..4a4c09496c 100644 --- a/builtin/merge.c +++ b/builtin/merge.c @@ -1186,14 +1186,15 @@ int cmd_merge(int argc, const char **argv, const char *prefix) branch = branch_to_free = resolve_refdup("HEAD", 0, &head_oid, NULL); if (branch) skip_prefix(branch, "refs/heads/", &branch); + + init_diff_ui_defaults(); + git_config(git_merge_config, NULL); + if (!branch || is_null_oid(&head_oid)) head_commit = NULL; else head_commit = lookup_commit_or_die(&head_oid, "HEAD"); - init_diff_ui_defaults(); - git_config(git_merge_config, NULL); - if (branch_mergeoptions) parse_branch_merge_options(branch_mergeoptions); argc = parse_options(argc, argv, prefix, builtin_merge_options, |