FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
git2cpp/src/wrapper/diffstats_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
/
diffstats_wrapper.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
21 lines (17 loc) · 480 Bytes
Breadcrumbs
git2cpp
/
src
/
wrapper
/
diffstats_wrapper.cpp
Copy path
File metadata and controls
21 lines (17 loc) · 480 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
#
include
"
../wrapper/diffstats_wrapper.hpp
"
#
include
"
../utils/git_exception.hpp
"
diffstats_wrapper::diffstats_wrapper
(git_diff_stats* stats)
: base_type(stats)
{
}
diffstats_wrapper::~diffstats_wrapper
()
{
git_diff_stats_free
(p_resource);
p_resource =
nullptr
;
}
git_buf
diffstats_wrapper::to_buf
(
git_diff_stats_format_t
format,
size_t
width)
{
git_buf buf =
GIT_BUF_INIT
;
throw_if_error
(
git_diff_stats_to_buf
(&buf, *
this
, format,
80
));
return
buf;
}
Back
|
FazBrowse Home
|
New Git URL