X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin%2Fcheckout.c;h=88b1f43e05e64f0e8dcd6dd0461bbebd6fab1e25;hb=7a0d54facd476a9197f405d2cc65d4bc73e3f1a6;hp=acefaaf41a4e26e45225f6d228734c93c8f2b23c;hpb=faf752693abd0a891a9a47a2d398353cc59ee93a;p=git.git diff --git a/builtin/checkout.c b/builtin/checkout.c index acefaaf41..88b1f43e0 100644 --- a/builtin/checkout.c +++ b/builtin/checkout.c @@ -149,7 +149,7 @@ static int checkout_merged(int pos, struct checkout *state) read_mmblob(&ours, active_cache[pos+1]->sha1); read_mmblob(&theirs, active_cache[pos+2]->sha1); - status = ll_merge(&result_buf, path, &ancestor, + status = ll_merge(&result_buf, path, &ancestor, "base", &ours, "ours", &theirs, "theirs", 0); free(ancestor.ptr); free(ours.ptr); @@ -439,6 +439,7 @@ static int merge_working_tree(struct checkout_opts *opts, ret = reset_tree(new->commit->tree, opts, 1); if (ret) return ret; + o.ancestor = old->name; o.branch1 = new->name; o.branch2 = "local"; merge_trees(&o, new->commit->tree, work,