-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathconfig_wrapper.hpp
More file actions
29 lines (18 loc) · 595 Bytes
/
config_wrapper.hpp
File metadata and controls
29 lines (18 loc) · 595 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#pragma once
#include <string>
#include <git2.h>
#include "../wrapper/wrapper_base.hpp"
class config_wrapper : public wrapper_base<git_config>
{
public:
using base_type = wrapper_base<git_config>;
~config_wrapper();
config_wrapper(config_wrapper&&) noexcept = default;
config_wrapper& operator=(config_wrapper&&) noexcept = default;
git_config_entry* get_entry(std::string name);
void set_entry(std::string name, std::string value);
void delete_entry(std::string name);
private:
config_wrapper(git_config* cfg);
friend class repository_wrapper;
};