Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'tq/branch-create-wo-branch-get' into maint
author
Junio C Hamano
<gitster@pobox.com>
Wed, 21 Nov 2018 13:58:06 +0000
(22:58 +0900)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 21 Nov 2018 13:58:06 +0000
(22:58 +0900)
Code clean-up.
* tq/branch-create-wo-branch-get:
builtin/branch.c: remove useless branch_get
builtin/branch.c
patch
|
blob
|
history
raw
(from parent 1:
c2d6378
)
diff --git
a/builtin/branch.c
b/builtin/branch.c
index bbd006aab4b4798b7e86530fe3562c753e879bc1..daf054598ba0b8ba7c515326891a0c47b90a38d5 100644
(file)
--- a/
builtin/branch.c
+++ b/
builtin/branch.c
@@
-828,11
+828,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"));