@@ -14,13 +14,13 @@ status_subcommand::status_subcommand(const libgit2_object&, CLI::App& app)
14
14
{
15
15
auto *sub = app.add_subcommand (" status" , " Show modified files in working directory, staged for your next commit" );
16
16
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." );
19
19
// sub->add_flag("--porcelain[=<version>]", porcelain, "Give the output in an easy-to-parse format for scripts.
20
20
// This is similar to the short output, but will remain stable across Git versions and regardless of user configuration.
21
21
// See below for details. The version parameter is used to specify the format version. This is optional and defaults
22
22
// 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." );
24
24
25
25
sub->callback ([this ]() { this ->run (); });
26
26
};
@@ -194,11 +194,11 @@ void status_subcommand::run()
194
194
std::vector<std::string> ignored_to_print{};
195
195
196
196
output_format of = output_format::DEFAULT;
197
- if (short_flag )
197
+ if (m_short_flag )
198
198
{
199
199
of = output_format::SHORT;
200
200
}
201
- if (long_flag )
201
+ if (m_long_flag )
202
202
{
203
203
of = output_format::LONG;
204
204
}
@@ -215,7 +215,7 @@ void status_subcommand::run()
215
215
}
216
216
else
217
217
{
218
- if (branch_flag )
218
+ if (m_branch_flag )
219
219
{
220
220
std::cout << " ## " << branch_name << std::endl;
221
221
}
0 commit comments