Merge branch 'tq/branch-create-wo-branch-get' into maint
Code clean-up. * tq/branch-create-wo-branch-get: builtin/branch.c: remove useless branch_get
This commit is contained in:
commit
2b40fdd079
@ -828,11 +828,6 @@ int cmd_branch(int argc, const char **argv, const char *prefix)
|
|||||||
git_config_set_multivar(buf.buf, NULL, NULL, 1);
|
git_config_set_multivar(buf.buf, NULL, NULL, 1);
|
||||||
strbuf_release(&buf);
|
strbuf_release(&buf);
|
||||||
} else if (argc > 0 && argc <= 2) {
|
} else if (argc > 0 && argc <= 2) {
|
||||||
struct branch *branch = branch_get(argv[0]);
|
|
||||||
|
|
||||||
if (!branch)
|
|
||||||
die(_("no such branch '%s'"), argv[0]);
|
|
||||||
|
|
||||||
if (filter.kind != FILTER_REFS_BRANCHES)
|
if (filter.kind != FILTER_REFS_BRANCHES)
|
||||||
die(_("-a and -r options to 'git branch' do not make sense with a branch name"));
|
die(_("-a and -r options to 'git branch' do not make sense with a branch name"));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user