@@ -14,13 +14,13 @@ status_subcommand::status_subcommand(const libgit2_object&, CLI::App& app)
1414{
1515 auto *sub = app.add_subcommand (" status" , " Show modified files in working directory, staged for your next commit" );
1616
17- sub->add_flag (" -s,--short" , short_flag , " Give the output in the short-format." );
18- sub->add_flag (" --long" , long_flag , " Give the output in the long-format. This is the default." );
17+ sub->add_flag (" -s,--short" , m_short_flag , " Give the output in the short-format." );
18+ sub->add_flag (" --long" , m_long_flag , " Give the output in the long-format. This is the default." );
1919 // sub->add_flag("--porcelain[=<version>]", porcelain, "Give the output in an easy-to-parse format for scripts.
2020 // This is similar to the short output, but will remain stable across Git versions and regardless of user configuration.
2121 // See below for details. The version parameter is used to specify the format version. This is optional and defaults
2222 // to the original version v1 format.");
23- sub->add_flag (" -b,--branch" , branch_flag , " Show the branch and tracking info even in short-format." );
23+ sub->add_flag (" -b,--branch" , m_branch_flag , " Show the branch and tracking info even in short-format." );
2424
2525 sub->callback ([this ]() { this ->run (); });
2626};
@@ -194,11 +194,11 @@ void status_subcommand::run()
194194 std::vector<std::string> ignored_to_print{};
195195
196196 output_format of = output_format::DEFAULT;
197- if (short_flag )
197+ if (m_short_flag )
198198 {
199199 of = output_format::SHORT;
200200 }
201- if (long_flag )
201+ if (m_long_flag )
202202 {
203203 of = output_format::LONG;
204204 }
@@ -215,7 +215,7 @@ void status_subcommand::run()
215215 }
216216 else
217217 {
218- if (branch_flag )
218+ if (m_branch_flag )
219219 {
220220 std::cout << " ## " << branch_name << std::endl;
221221 }
0 commit comments