switch: remove -l

This option is ancient. Nowadays reflog is enabled by default and automatically created for new branches. Keep it in git-checkout only. Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Nguyễn Thái Ngọc Duy committed Mar 29, 2019 at 17:39 UTC 492ededc263e48d1a261dd694642ca53be4939e4
1 file changed +1 -1
builtin/checkout.c
+1 -1
@@ -1376,7 +1376,6 @@ static struct option *add_common_switch_branch_options(
1376 struct checkout_opts *opts, struct option *prevopts)
1377 {
1378 struct option options[] = {
1379 - OPT_BOOL('l', NULL, &opts->new_branch_log, N_("create reflog for new branch")),
1379 OPT_BOOL(0, "detach", &opts->force_detach, N_("detach HEAD at named commit")),
1380 OPT_SET_INT('t', "track", &opts->track, N_("set upstream info for new branch"),
1381 BRANCH_TRACK_EXPLICIT),
@@ -1579,6 +1578,7 @@ int cmd_checkout(int argc, const char **argv, const char *prefix)
1578 N_("create and checkout a new branch")),
1579 OPT_STRING('B', NULL, &opts.new_branch_force, N_("branch"),
1580 N_("create/reset and checkout a branch")),
1581 + OPT_BOOL('l', NULL, &opts.new_branch_log, N_("create reflog for new branch")),
1582 OPT_END()
1583 };
1584 int ret;