forked from libgit2/pygit2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathblame.h
More file actions
49 lines (38 loc) · 1.03 KB
/
blame.h
File metadata and controls
49 lines (38 loc) · 1.03 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#define GIT_BLAME_OPTIONS_VERSION ...
typedef struct git_blame git_blame;
typedef struct git_blame_options {
unsigned int version;
uint32_t flags;
uint16_t min_match_characters;
git_oid newest_commit;
git_oid oldest_commit;
size_t min_line;
size_t max_line;
} git_blame_options;
typedef struct git_blame_hunk {
size_t lines_in_hunk;
git_oid final_commit_id;
size_t final_start_line_number;
git_signature *final_signature;
git_oid orig_commit_id;
const char *orig_path;
size_t orig_start_line_number;
git_signature *orig_signature;
char boundary;
} git_blame_hunk;
int git_blame_init_options(
git_blame_options *opts,
unsigned int version);
uint32_t git_blame_get_hunk_count(git_blame *blame);
const git_blame_hunk* git_blame_get_hunk_byindex(
git_blame *blame,
uint32_t index);
const git_blame_hunk* git_blame_get_hunk_byline(
git_blame *blame,
size_t lineno);
int git_blame_file(
git_blame **out,
git_repository *repo,
const char *path,
git_blame_options *options);
void git_blame_free(git_blame *blame);