line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
MODULE = Git::Raw PACKAGE = Git::Raw::Diff::Delta |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
SV * |
4
|
|
|
|
|
|
|
status(self) |
5
|
|
|
|
|
|
|
Diff_Delta self |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
PREINIT: |
8
|
4
|
|
|
|
|
|
const char *status = NULL; |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
CODE: |
11
|
4
|
50
|
|
|
|
|
if (self -> status == GIT_DELTA_UNMODIFIED) |
12
|
0
|
|
|
|
|
|
status = "unmodified"; |
13
|
4
|
100
|
|
|
|
|
else if (self -> status == GIT_DELTA_ADDED) |
14
|
2
|
|
|
|
|
|
status = "added"; |
15
|
2
|
50
|
|
|
|
|
else if (self -> status == GIT_DELTA_DELETED) |
16
|
0
|
|
|
|
|
|
status = "deleted"; |
17
|
2
|
100
|
|
|
|
|
else if (self -> status == GIT_DELTA_MODIFIED) |
18
|
1
|
|
|
|
|
|
status = "modified"; |
19
|
1
|
50
|
|
|
|
|
else if (self -> status == GIT_DELTA_RENAMED) |
20
|
1
|
|
|
|
|
|
status = "renamed"; |
21
|
0
|
0
|
|
|
|
|
else if (self -> status == GIT_DELTA_COPIED) |
22
|
0
|
|
|
|
|
|
status = "copied"; |
23
|
0
|
0
|
|
|
|
|
else if (self -> status == GIT_DELTA_IGNORED) |
24
|
0
|
|
|
|
|
|
status = "ignored"; |
25
|
0
|
0
|
|
|
|
|
else if (self -> status == GIT_DELTA_UNTRACKED) |
26
|
0
|
|
|
|
|
|
status = "untracked"; |
27
|
0
|
0
|
|
|
|
|
else if (self -> status == GIT_DELTA_TYPECHANGE) |
28
|
0
|
|
|
|
|
|
status = "type_change"; |
29
|
0
|
0
|
|
|
|
|
else if (self -> status == GIT_DELTA_UNREADABLE) |
30
|
0
|
|
|
|
|
|
status = "unreadable"; |
31
|
0
|
0
|
|
|
|
|
else if (self -> status == GIT_DELTA_CONFLICTED) |
32
|
0
|
|
|
|
|
|
status = "conflicted"; |
33
|
|
|
|
|
|
|
|
34
|
4
|
|
|
|
|
|
RETVAL = newSVpv (status, 0); |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
OUTPUT: RETVAL |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
SV * |
39
|
|
|
|
|
|
|
flags(self) |
40
|
|
|
|
|
|
|
Diff_Delta self |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
PREINIT: |
43
|
1
|
|
|
|
|
|
AV *flags = newAV(); |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
CODE: |
46
|
1
|
50
|
|
|
|
|
if (self -> flags & GIT_DIFF_FLAG_BINARY) |
47
|
0
|
|
|
|
|
|
av_push(flags, newSVpv("binary", 0)); |
48
|
1
|
50
|
|
|
|
|
if (self -> flags & GIT_DIFF_FLAG_VALID_ID) |
49
|
0
|
|
|
|
|
|
av_push(flags, newSVpv("valid_id", 0)); |
50
|
|
|
|
|
|
|
|
51
|
1
|
|
|
|
|
|
RETVAL = newRV_noinc((SV *) flags); |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
OUTPUT: RETVAL |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
SV * |
56
|
|
|
|
|
|
|
similarity(self) |
57
|
|
|
|
|
|
|
Diff_Delta self |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
CODE: |
60
|
1
|
|
|
|
|
|
RETVAL = newSVuv(self -> similarity); |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
OUTPUT: RETVAL |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
SV * |
65
|
|
|
|
|
|
|
file_count(self) |
66
|
|
|
|
|
|
|
Diff_Delta self |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
CODE: |
69
|
3
|
|
|
|
|
|
RETVAL = newSVuv(self -> nfiles); |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
OUTPUT: RETVAL |
72
|
|
|
|
|
|
|
|
73
|
|
|
|
|
|
|
SV * |
74
|
|
|
|
|
|
|
old_file(self) |
75
|
|
|
|
|
|
|
SV *self |
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
PREINIT: |
78
|
|
|
|
|
|
|
Diff_Delta self_ptr; |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
CODE: |
81
|
2
|
|
|
|
|
|
self_ptr = GIT_SV_TO_PTR(Diff::Delta, self); |
82
|
|
|
|
|
|
|
|
83
|
2
|
|
|
|
|
|
GIT_NEW_OBJ_WITH_MAGIC( |
84
|
|
|
|
|
|
|
RETVAL, "Git::Raw::Diff::File", &self_ptr -> old_file, SvRV(self)); |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
OUTPUT: RETVAL |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
SV * |
89
|
|
|
|
|
|
|
new_file(self) |
90
|
|
|
|
|
|
|
SV *self |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
PREINIT: |
93
|
|
|
|
|
|
|
Diff_Delta self_ptr; |
94
|
|
|
|
|
|
|
|
95
|
|
|
|
|
|
|
CODE: |
96
|
5
|
|
|
|
|
|
self_ptr = GIT_SV_TO_PTR(Diff::Delta, self); |
97
|
|
|
|
|
|
|
|
98
|
5
|
|
|
|
|
|
GIT_NEW_OBJ_WITH_MAGIC( |
99
|
|
|
|
|
|
|
RETVAL, "Git::Raw::Diff::File", &self_ptr -> new_file, SvRV(self)); |
100
|
|
|
|
|
|
|
|
101
|
|
|
|
|
|
|
OUTPUT: RETVAL |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
void |
104
|
|
|
|
|
|
|
DESTROY(self) |
105
|
|
|
|
|
|
|
SV *self |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
CODE: |
108
|
9
|
|
|
|
|
|
SvREFCNT_dec(GIT_SV_TO_MAGIC(self)); |