You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sub->add_option("<branch>", m_branch_name, "Branch to checkout");
16
17
sub->add_flag("-b", m_create_flag, "Create a new branch before checking it out");
17
18
sub->add_flag("-B", m_force_create_flag, "Create a new branch or reset it if it exists before checking it out");
18
-
sub->add_flag("-f, --force", m_force_checkout_flag, "When switching branches, proceed even if the index or the working tree differs from HEAD, and even if there are untracked files in the way");
19
-
20
-
sub->callback([this]() { this->run(); });
19
+
sub->add_flag(
20
+
"-f, --force",
21
+
m_force_checkout_flag,
22
+
"When switching branches, proceed even if the index or the working tree differs from HEAD, and even if there are untracked files in the way"
23
+
);
24
+
25
+
sub->callback(
26
+
[this]()
27
+
{
28
+
this->run();
29
+
}
30
+
);
21
31
}
22
32
23
33
voidprint_no_switch(status_list_wrapper& sl)
@@ -44,7 +54,7 @@ void checkout_subcommand::run()
44
54
45
55
if (repo.state() != GIT_REPOSITORY_STATE_NONE)
46
56
{
47
-
throwstd::runtime_error("Cannot checkout, repository is in unexpected state");
57
+
throwstd::runtime_error("Cannot checkout, repository is in unexpected state");
0 commit comments