forked from QuantStack/git2cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdiff_wrapper.hpp
More file actions
31 lines (20 loc) · 720 Bytes
/
Copy pathdiff_wrapper.hpp
File metadata and controls
31 lines (20 loc) · 720 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
30
31
#pragma once
#include <git2.h>
#include "../wrapper/diffstats_wrapper.hpp"
#include "../wrapper/wrapper_base.hpp"
class diff_wrapper : public wrapper_base<git_diff>
{
public:
using base_type = wrapper_base<git_diff>;
~diff_wrapper();
diff_wrapper(diff_wrapper&&) noexcept = default;
diff_wrapper& operator=(diff_wrapper&&) noexcept = default;
void find_similar(git_diff_find_options* find_opts);
void print(git_diff_format_t format, git_diff_line_cb print_cb, void* payload);
diffstats_wrapper get_stats() const;
static diff_wrapper diff_from_buffer(git_buf buf);
private:
diff_wrapper(git_diff* diff);
friend class buf_wrapper;
friend class repository_wrapper;
};