|
1 | 1 | { |
2 | | - "types": [ |
3 | | - [ |
4 | | - "git_direction", |
5 | | - { |
6 | | - "type": "enum" |
7 | | - } |
8 | | - ], |
9 | | - [ |
10 | | - "git_merge_options", |
11 | | - { |
12 | | - "type": "struct", |
13 | | - "fields": [ |
14 | | - { |
15 | | - "type": "unsigned int", |
16 | | - "name": "version" |
17 | | - }, |
18 | | - { |
19 | | - "type": "git_merge_tree_flag_t", |
20 | | - "name": "flags" |
21 | | - }, |
22 | | - { |
23 | | - "type": "unsigned int", |
24 | | - "name": "rename_threshold" |
25 | | - }, |
26 | | - { |
27 | | - "type": "unsigned int", |
28 | | - "name": "target_limit" |
29 | | - }, |
30 | | - { |
31 | | - "type": "git_diff_similarity_metric *", |
32 | | - "name": "metric", |
33 | | - "ignore": true |
34 | | - }, |
35 | | - { |
36 | | - "type": "git_merge_file_favor_t", |
37 | | - "name": "file_favor" |
| 2 | + "types": { |
| 3 | + "git_cred_default": { |
| 4 | + "decl": "git_cred" |
| 5 | + }, |
| 6 | + "git_diff_hunk": { |
| 7 | + "decl": [ |
| 8 | + "int old_start", |
| 9 | + "int old_lines", |
| 10 | + "int new_start", |
| 11 | + "int new_lines", |
| 12 | + "size_t header_len", |
| 13 | + "char header[128]" |
| 14 | + ] |
| 15 | + }, |
| 16 | + "git_diff_line": { |
| 17 | + "decl": [ |
| 18 | + "int origin", |
| 19 | + "int old_lineno", |
| 20 | + "int new_lineno", |
| 21 | + "int num_lines", |
| 22 | + "size_t, content_len", |
| 23 | + "git_off_t content_offset", |
| 24 | + "const char * content" |
| 25 | + ], |
| 26 | + "fields": [ |
| 27 | + { |
| 28 | + "name": "origin", |
| 29 | + "type": "int" |
| 30 | + }, |
| 31 | + { |
| 32 | + "name": "old_lineno", |
| 33 | + "type": "int" |
| 34 | + }, |
| 35 | + { |
| 36 | + "name": "new_lineno", |
| 37 | + "type": "int" |
| 38 | + }, |
| 39 | + { |
| 40 | + "name": "num_lines", |
| 41 | + "type": "int" |
| 42 | + }, |
| 43 | + { |
| 44 | + "name": "content_len", |
| 45 | + "type": "size_t" |
| 46 | + }, |
| 47 | + { |
| 48 | + "name": "content_offset", |
| 49 | + "type": "git_off_t" |
| 50 | + }, |
| 51 | + { |
| 52 | + "name": "content", |
| 53 | + "type": "const char *" |
| 54 | + } |
| 55 | + ] |
| 56 | + }, |
| 57 | + "git_note_iterator": { |
| 58 | + "decl": "git_iterator" |
| 59 | + }, |
| 60 | + "git_tree_entry": { |
| 61 | + "fields": [ |
| 62 | + { |
| 63 | + "name": "removed", |
| 64 | + "type": "uint16_t" |
| 65 | + }, |
| 66 | + { |
| 67 | + "name": "attr", |
| 68 | + "type": "uint16_t" |
| 69 | + }, |
| 70 | + { |
| 71 | + "name": "oid", |
| 72 | + "type": "git_oid" |
| 73 | + }, |
| 74 | + { |
| 75 | + "name": "filename_len", |
| 76 | + "type": "size_t" |
| 77 | + }, |
| 78 | + { |
| 79 | + "name": "filename", |
| 80 | + "structType": "char", |
| 81 | + "structName": "filename[1]", |
| 82 | + "type": "char *" |
| 83 | + } |
| 84 | + ] |
| 85 | + } |
| 86 | + }, |
| 87 | + "new" : { |
| 88 | + "types": [ |
| 89 | + [ |
| 90 | + "git_direction", |
| 91 | + { |
| 92 | + "type": "enum" |
| 93 | + } |
| 94 | + ], |
| 95 | + [ |
| 96 | + "git_merge_options", |
| 97 | + { |
| 98 | + "type": "struct", |
| 99 | + "fields": [ |
| 100 | + { |
| 101 | + "type": "unsigned int", |
| 102 | + "name": "version" |
| 103 | + }, |
| 104 | + { |
| 105 | + "type": "git_merge_tree_flag_t", |
| 106 | + "name": "flags" |
| 107 | + }, |
| 108 | + { |
| 109 | + "type": "unsigned int", |
| 110 | + "name": "rename_threshold" |
| 111 | + }, |
| 112 | + { |
| 113 | + "type": "unsigned int", |
| 114 | + "name": "target_limit" |
| 115 | + }, |
| 116 | + { |
| 117 | + "type": "git_diff_similarity_metric *", |
| 118 | + "name": "metric", |
| 119 | + "ignore": true |
| 120 | + }, |
| 121 | + { |
| 122 | + "type": "git_merge_file_favor_t", |
| 123 | + "name": "file_favor" |
| 124 | + } |
| 125 | + ], |
| 126 | + "used": { |
| 127 | + "needs": [ |
| 128 | + "git_merge_init_options" |
| 129 | + ] |
38 | 130 | } |
39 | | - ], |
40 | | - "used": { |
41 | | - "needs": [ |
42 | | - "git_merge_init_options" |
43 | | - ] |
44 | 131 | } |
45 | | - } |
46 | | - ], |
47 | | - [ |
48 | | - "git_off_t", |
49 | | - { |
50 | | - "type": "enum" |
51 | | - } |
52 | | - ], |
53 | | - [ |
54 | | - "git_remote_autotag_option_t", |
55 | | - { |
56 | | - "type": "enum" |
57 | | - } |
58 | | - ], |
59 | | - [ |
60 | | - "git_time_t", |
61 | | - { |
62 | | - "type": "enum" |
63 | | - } |
64 | | - ], |
65 | | - [ |
66 | | - "git_trace_level_t", |
67 | | - { |
68 | | - "type": "enum" |
69 | | - } |
| 132 | + ], |
| 133 | + [ |
| 134 | + "git_off_t", |
| 135 | + { |
| 136 | + "type": "enum" |
| 137 | + } |
| 138 | + ], |
| 139 | + [ |
| 140 | + "git_remote_autotag_option_t", |
| 141 | + { |
| 142 | + "type": "enum" |
| 143 | + } |
| 144 | + ], |
| 145 | + [ |
| 146 | + "git_time_t", |
| 147 | + { |
| 148 | + "type": "enum" |
| 149 | + } |
| 150 | + ], |
| 151 | + [ |
| 152 | + "git_trace_level_t", |
| 153 | + { |
| 154 | + "type": "enum" |
| 155 | + } |
| 156 | + ] |
70 | 157 | ] |
71 | | - ] |
| 158 | + } |
72 | 159 | } |
0 commit comments