memcpy(ce->name, path, len);
ce->ce_flags = create_ce_flags(len, stage);
ce->ce_mode = create_ce_mode(mode);
memcpy(ce->name, path, len);
ce->ce_flags = create_ce_flags(len, stage);
ce->ce_mode = create_ce_mode(mode);
result.mode = a->mode == o->mode ? b->mode: a->mode;
if (sha_eq(a->sha1, o->sha1))
result.mode = a->mode == o->mode ? b->mode: a->mode;
if (sha_eq(a->sha1, o->sha1))
output("Auto-merging %s", path);
o.path = a.path = b.path = (char *)path;
output("Auto-merging %s", path);
o.path = a.path = b.path = (char *)path;
b.mode = b_mode;
mfi = merge_file(&o, &a, &b,
b.mode = b_mode;
mfi = merge_file(&o, &a, &b,