Merge branch 'ea/rebase-code-simplify'
Code clean-up. * ea/rebase-code-simplify: rebase: simplify an assignment of options.type in cmd_rebase
This commit is contained in:
commit
bedefc1227
@ -1187,11 +1187,9 @@ int cmd_rebase(int argc, const char **argv, const char *prefix)
|
||||
} else {
|
||||
strbuf_reset(&buf);
|
||||
strbuf_addf(&buf, "%s/interactive", merge_dir());
|
||||
if(file_exists(buf.buf)) {
|
||||
options.type = REBASE_MERGE;
|
||||
if (file_exists(buf.buf))
|
||||
options.flags |= REBASE_INTERACTIVE_EXPLICIT;
|
||||
} else
|
||||
options.type = REBASE_MERGE;
|
||||
}
|
||||
options.state_dir = merge_dir();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user