Skip to content

Commit 7552611

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 667a09e commit 7552611

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/subcommand/push_subcommand.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
#include <git2/remote.h>
66
#include <git2/types.h>
77

8+
#include "../utils/ansi_code.hpp"
89
#include "../utils/credentials.hpp"
910
#include "../utils/progress.hpp"
10-
#include "../utils/ansi_code.hpp"
1111
#include "../wrapper/repository_wrapper.hpp"
1212

1313
push_subcommand::push_subcommand(const libgit2_object&, CLI::App& app)
@@ -17,7 +17,12 @@ push_subcommand::push_subcommand(const libgit2_object&, CLI::App& app)
1717
sub->add_option("<remote>", m_remote_name, "The remote to push to")->default_val("origin");
1818
sub->add_option("<branch>", m_branch_name, "The branch to push");
1919
sub->add_option("<refspec>", m_refspecs, "The refspec(s) to push");
20-
sub->add_flag("--all,--branches", m_branches_flag, "Push all branches (i.e. refs under " + ansi_code::bold + "refs/heads/" + ansi_code::reset + "); cannot be used with other <refspec>.");
20+
sub->add_flag(
21+
"--all,--branches",
22+
m_branches_flag,
23+
"Push all branches (i.e. refs under " + ansi_code::bold + "refs/heads/" + ansi_code::reset
24+
+ "); cannot be used with other <refspec>."
25+
);
2126

2227

2328
sub->callback(

0 commit comments

Comments
 (0)