line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
MODULE = Git::Raw PACKAGE = Git::Raw::Indexer |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
SV * |
4
|
|
|
|
|
|
|
new(class, path, odb) |
5
|
|
|
|
|
|
|
SV *class |
6
|
|
|
|
|
|
|
SV *path |
7
|
|
|
|
|
|
|
SV *odb |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
PREINIT: |
10
|
|
|
|
|
|
|
int rc; |
11
|
|
|
|
|
|
|
Indexer indexer; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
CODE: |
14
|
1
|
|
|
|
|
|
rc = git_indexer_new(&indexer, git_ensure_pv(path, "path"), |
15
|
1
|
|
|
|
|
|
0, GIT_SV_TO_PTR(Odb, odb), NULL); |
16
|
1
|
|
|
|
|
|
git_check_error(rc); |
17
|
|
|
|
|
|
|
|
18
|
1
|
|
|
|
|
|
GIT_NEW_OBJ_WITH_MAGIC( |
19
|
|
|
|
|
|
|
RETVAL, "Git::Raw::Indexer", indexer, SvRV(odb) |
20
|
|
|
|
|
|
|
); |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
OUTPUT: RETVAL |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
void |
25
|
|
|
|
|
|
|
append(self, data, progress) |
26
|
|
|
|
|
|
|
Indexer self |
27
|
|
|
|
|
|
|
SV *data |
28
|
|
|
|
|
|
|
TransferProgress progress |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
PREINIT: |
31
|
|
|
|
|
|
|
int rc; |
32
|
|
|
|
|
|
|
const char *d; |
33
|
|
|
|
|
|
|
STRLEN len; |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
CODE: |
36
|
1
|
|
|
|
|
|
d = git_ensure_pv_with_len(data, "data", &len); |
37
|
1
|
|
|
|
|
|
rc = git_indexer_append(self, d, len, progress); |
38
|
1
|
|
|
|
|
|
git_check_error(rc); |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
void |
41
|
|
|
|
|
|
|
commit(self, progress) |
42
|
|
|
|
|
|
|
Indexer self |
43
|
|
|
|
|
|
|
TransferProgress progress |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
PREINIT: |
46
|
|
|
|
|
|
|
int rc; |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
CODE: |
49
|
1
|
|
|
|
|
|
rc = git_indexer_commit(self, progress); |
50
|
1
|
|
|
|
|
|
git_check_error(rc); |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
SV * |
53
|
|
|
|
|
|
|
hash(self) |
54
|
|
|
|
|
|
|
Indexer self |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
CODE: |
57
|
1
|
|
|
|
|
|
RETVAL = git_oid_to_sv(git_indexer_hash(self)); |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
OUTPUT: RETVAL |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
void |
62
|
|
|
|
|
|
|
DESTROY(self) |
63
|
|
|
|
|
|
|
SV *self |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
CODE: |
66
|
1
|
|
|
|
|
|
git_indexer_free(GIT_SV_TO_PTR(Indexer, self)); |
67
|
1
|
|
|
|
|
|
SvREFCNT_dec(GIT_SV_TO_MAGIC(self)); |
68
|
|
|
|
|
|
|
|