Skip to content

Commit ff36af8

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

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

src/subcommand/push_subcommand.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,11 @@ push_subcommand::push_subcommand(const libgit2_object&, CLI::App& app)
3535
);
3636
}
3737

38-
int credential_cb(git_cred **out, const char *url, const char *username_from_url, unsigned int allowed_types, void *payload) {
38+
int credential_cb(git_cred** out, const char* url, const char* username_from_url, unsigned int allowed_types, void* payload)
39+
{
3940
// Replace with your actual credentials
4041
const char* username = user_credentials;
41-
const char *password = "your_password_or_token";
42+
const char* password = "your_password_or_token";
4243

4344
return git_cred_userpass_plaintext_new(out, username, password);
4445
}

src/wrapper/remote_wrapper.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,12 @@ std::vector<const git_remote_head*> remote_wrapper::ls() const
6262

6363
std::vector<const git_remote_head*> remote_heads_vec;
6464
for (size_t i = 0; i < remote_heads_size; i++)
65-
{
66-
remote_heads_vec.push_back(remote_heads[i]);
67-
}
65+
{
66+
remote_heads_vec.push_back(remote_heads[i]);
67+
}
6868
return remote_heads_vec;
6969
}
7070

71-
7271
// std::vector<std::string> remote_wrapper::ls() const
7372
// {
7473
// const git_remote_head** remote_heads;

src/wrapper/repository_wrapper.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include <iostream>
66
#include <optional>
77
#include <string_view>
8+
89
#include <git2/buffer.h>
910

1011
#include "../utils/git_exception.hpp"

0 commit comments

Comments
 (0)