FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
git2cpp/src/wrapper/config_wrapper.cpp at main · QuantStack/git2cpp · GitHub
QuantStack
git2cpp
Repository navigation
Code
Issues
6
(6)
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
git2cpp
/
src
/
wrapper
/
config_wrapper.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
31 lines (25 loc) · 712 Bytes
Breadcrumbs
git2cpp
/
src
/
wrapper
/
config_wrapper.cpp
Copy path
File metadata and controls
31 lines (25 loc) · 712 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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
30
31
#
include
"
../wrapper/config_wrapper.hpp
"
#
include
"
../utils/git_exception.hpp
"
config_wrapper::config_wrapper
(git_config* cfg)
: base_type(cfg)
{
}
config_wrapper::~config_wrapper
()
{
git_config_free
(p_resource);
p_resource =
nullptr
;
}
git_config_entry*
config_wrapper::get_entry
(std::string name)
{
git_config_entry* entry;
throw_if_error
(
git_config_get_entry
(&entry, *
this
, name.
c_str
()));
return
entry;
}
void
config_wrapper::set_entry
(std::string name, std::string value)
{
throw_if_error
(
git_config_set_string
(*
this
, name.
c_str
(), value.
c_str
()));
}
void
config_wrapper::delete_entry
(std::string name)
{
throw_if_error
(
git_config_delete_entry
(*
this
, name.
c_str
()));
}
Back
|
FazBrowse Home
|
New Git URL