diff options
author | Junio C Hamano <gitster@pobox.com> | 2018-10-30 09:43:42 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-10-30 09:43:42 +0300 |
commit | d4591b97bdb72d5b7c7b84c75f5a0010e44932ca (patch) | |
tree | fa6a2c8fe791336a508c087103cdba2788e696f6 /builtin | |
parent | d829d491eebddc2eefcaa9279ac4b67c7eefbd52 (diff) | |
parent | 8d2008196b4e6100cf90e8392106e82f46cc1a51 (diff) |
Merge branch 'tq/branch-create-wo-branch-get'
Code clean-up.
* tq/branch-create-wo-branch-get:
builtin/branch.c: remove useless branch_get
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/branch.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/builtin/branch.c b/builtin/branch.c index c396c41533..2367703034 100644 --- a/builtin/branch.c +++ b/builtin/branch.c @@ -809,11 +809,6 @@ int cmd_branch(int argc, const char **argv, const char *prefix) git_config_set_multivar(buf.buf, NULL, NULL, 1); strbuf_release(&buf); } 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) die(_("-a and -r options to 'git branch' do not make sense with a branch name")); |