| 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 |
▶ | if (self -> status == GIT_DELTA_UNMODIFIED) |
Branch: 1 branch
| Branch | True | False | Total |
| if (self -> status == GIT_DELTA_UNMODIFIED) |
0 |
4 |
4 |
|
| 12 |
0 |
| status = "unmodified"; |
| 13 |
4 |
▶ | else if (self -> status == GIT_DELTA_ADDED) |
Branch: 1 branch
| Branch | True | False | Total |
| else if (self -> status == GIT_DELTA_ADDED) |
2 |
2 |
4 |
|
| 14 |
2 |
| status = "added"; |
| 15 |
2 |
▶ | else if (self -> status == GIT_DELTA_DELETED) |
Branch: 1 branch
| Branch | True | False | Total |
| else if (self -> status == GIT_DELTA_DELETED) |
0 |
2 |
2 |
|
| 16 |
0 |
| status = "deleted"; |
| 17 |
2 |
▶ | else if (self -> status == GIT_DELTA_MODIFIED) |
Branch: 1 branch
| Branch | True | False | Total |
| else if (self -> status == GIT_DELTA_MODIFIED) |
1 |
1 |
2 |
|
| 18 |
1 |
| status = "modified"; |
| 19 |
1 |
▶ | else if (self -> status == GIT_DELTA_RENAMED) |
Branch: 1 branch
| Branch | True | False | Total |
| else if (self -> status == GIT_DELTA_RENAMED) |
1 |
0 |
1 |
|
| 20 |
1 |
| status = "renamed"; |
| 21 |
0 |
▶ | else if (self -> status == GIT_DELTA_COPIED) |
Branch: 1 branch
| Branch | True | False | Total |
| else if (self -> status == GIT_DELTA_COPIED) |
0 |
0 |
0 |
|
| 22 |
0 |
| status = "copied"; |
| 23 |
0 |
▶ | else if (self -> status == GIT_DELTA_IGNORED) |
Branch: 1 branch
| Branch | True | False | Total |
| else if (self -> status == GIT_DELTA_IGNORED) |
0 |
0 |
0 |
|
| 24 |
0 |
| status = "ignored"; |
| 25 |
0 |
▶ | else if (self -> status == GIT_DELTA_UNTRACKED) |
Branch: 1 branch
| Branch | True | False | Total |
| else if (self -> status == GIT_DELTA_UNTRACKED) |
0 |
0 |
0 |
|
| 26 |
0 |
| status = "untracked"; |
| 27 |
0 |
▶ | else if (self -> status == GIT_DELTA_TYPECHANGE) |
Branch: 1 branch
| Branch | True | False | Total |
| else if (self -> status == GIT_DELTA_TYPECHANGE) |
0 |
0 |
0 |
|
| 28 |
0 |
| status = "type_change"; |
| 29 |
0 |
▶ | else if (self -> status == GIT_DELTA_UNREADABLE) |
Branch: 1 branch
| Branch | True | False | Total |
| else if (self -> status == GIT_DELTA_UNREADABLE) |
0 |
0 |
0 |
|
| 30 |
0 |
| status = "unreadable"; |
| 31 |
0 |
▶ | else if (self -> status == GIT_DELTA_CONFLICTED) |
Branch: 1 branch
| Branch | True | False | Total |
| else if (self -> status == GIT_DELTA_CONFLICTED) |
0 |
0 |
0 |
|
| 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 |
▶ | if (self -> flags & GIT_DIFF_FLAG_BINARY) |
Branch: 1 branch
| Branch | True | False | Total |
| if (self -> flags & GIT_DIFF_FLAG_BINARY) |
0 |
1 |
1 |
|
| 47 |
0 |
| av_push(flags, newSVpv("binary", 0)); |
| 48 |
1 |
▶ | if (self -> flags & GIT_DIFF_FLAG_VALID_ID) |
Branch: 1 branch
| Branch | True | False | Total |
| if (self -> flags & GIT_DIFF_FLAG_VALID_ID) |
0 |
1 |
1 |
|
| 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)); |