]>
Commit | Line | Data |
---|---|---|
dc13f1f7 | 1 | #include "status_helpers.h" |
11385c3c | 2 | |
a56aacf4 RB |
3 | /* entries for a plain copy of tests/resources/status */ |
4 | ||
11385c3c VM |
5 | static const char *entry_paths0[] = { |
6 | "file_deleted", | |
df743c7d | 7 | "ignored_file", |
11385c3c VM |
8 | "modified_file", |
9 | "new_file", | |
10 | "staged_changes", | |
11 | "staged_changes_file_deleted", | |
12 | "staged_changes_modified_file", | |
13 | "staged_delete_file_deleted", | |
14 | "staged_delete_modified_file", | |
15 | "staged_new_file", | |
16 | "staged_new_file_deleted_file", | |
17 | "staged_new_file_modified_file", | |
18 | ||
19 | "subdir/deleted_file", | |
20 | "subdir/modified_file", | |
21 | "subdir/new_file", | |
8e60c712 AR |
22 | |
23 | "\xe8\xbf\x99", | |
11385c3c VM |
24 | }; |
25 | ||
26 | static const unsigned int entry_statuses0[] = { | |
27 | GIT_STATUS_WT_DELETED, | |
e1bcc191 | 28 | GIT_STATUS_IGNORED, |
11385c3c VM |
29 | GIT_STATUS_WT_MODIFIED, |
30 | GIT_STATUS_WT_NEW, | |
31 | GIT_STATUS_INDEX_MODIFIED, | |
32 | GIT_STATUS_INDEX_MODIFIED | GIT_STATUS_WT_DELETED, | |
33 | GIT_STATUS_INDEX_MODIFIED | GIT_STATUS_WT_MODIFIED, | |
34 | GIT_STATUS_INDEX_DELETED, | |
35 | GIT_STATUS_INDEX_DELETED | GIT_STATUS_WT_NEW, | |
36 | GIT_STATUS_INDEX_NEW, | |
37 | GIT_STATUS_INDEX_NEW | GIT_STATUS_WT_DELETED, | |
38 | GIT_STATUS_INDEX_NEW | GIT_STATUS_WT_MODIFIED, | |
39 | ||
40 | GIT_STATUS_WT_DELETED, | |
41 | GIT_STATUS_WT_MODIFIED, | |
42 | GIT_STATUS_WT_NEW, | |
8e60c712 AR |
43 | |
44 | GIT_STATUS_WT_NEW, | |
11385c3c VM |
45 | }; |
46 | ||
e9ca852e | 47 | static const int entry_count0 = 16; |
11385c3c | 48 | |
a56aacf4 RB |
49 | /* entries for a copy of tests/resources/status with all content |
50 | * deleted from the working directory | |
51 | */ | |
52 | ||
53 | static const char *entry_paths2[] = { | |
54 | "current_file", | |
55 | "file_deleted", | |
56 | "modified_file", | |
57 | "staged_changes", | |
58 | "staged_changes_file_deleted", | |
59 | "staged_changes_modified_file", | |
60 | "staged_delete_file_deleted", | |
61 | "staged_delete_modified_file", | |
62 | "staged_new_file", | |
63 | "staged_new_file_deleted_file", | |
64 | "staged_new_file_modified_file", | |
65 | "subdir.txt", | |
66 | "subdir/current_file", | |
67 | "subdir/deleted_file", | |
68 | "subdir/modified_file", | |
69 | }; | |
70 | ||
71 | static const unsigned int entry_statuses2[] = { | |
72 | GIT_STATUS_WT_DELETED, | |
73 | GIT_STATUS_WT_DELETED, | |
74 | GIT_STATUS_WT_DELETED, | |
75 | GIT_STATUS_WT_DELETED | GIT_STATUS_INDEX_MODIFIED, | |
76 | GIT_STATUS_WT_DELETED | GIT_STATUS_INDEX_MODIFIED, | |
77 | GIT_STATUS_WT_DELETED | GIT_STATUS_INDEX_MODIFIED, | |
78 | GIT_STATUS_INDEX_DELETED, | |
79 | GIT_STATUS_INDEX_DELETED, | |
80 | GIT_STATUS_WT_DELETED | GIT_STATUS_INDEX_NEW, | |
81 | GIT_STATUS_WT_DELETED | GIT_STATUS_INDEX_NEW, | |
82 | GIT_STATUS_WT_DELETED | GIT_STATUS_INDEX_NEW, | |
83 | GIT_STATUS_WT_DELETED, | |
84 | GIT_STATUS_WT_DELETED, | |
85 | GIT_STATUS_WT_DELETED, | |
86 | GIT_STATUS_WT_DELETED, | |
87 | }; | |
88 | ||
e9ca852e | 89 | static const int entry_count2 = 15; |
a56aacf4 RB |
90 | |
91 | /* entries for a copy of tests/resources/status with some mods */ | |
92 | ||
93 | static const char *entry_paths3[] = { | |
94 | ".HEADER", | |
95 | "42-is-not-prime.sigh", | |
96 | "README.md", | |
97 | "current_file", | |
98 | "current_file/", | |
99 | "file_deleted", | |
100 | "ignored_file", | |
101 | "modified_file", | |
102 | "new_file", | |
103 | "staged_changes", | |
104 | "staged_changes_file_deleted", | |
105 | "staged_changes_modified_file", | |
106 | "staged_delete_file_deleted", | |
107 | "staged_delete_modified_file", | |
108 | "staged_new_file", | |
109 | "staged_new_file_deleted_file", | |
110 | "staged_new_file_modified_file", | |
111 | "subdir", | |
112 | "subdir/current_file", | |
113 | "subdir/deleted_file", | |
114 | "subdir/modified_file", | |
8e60c712 | 115 | "\xe8\xbf\x99", |
a56aacf4 RB |
116 | }; |
117 | ||
118 | static const unsigned int entry_statuses3[] = { | |
119 | GIT_STATUS_WT_NEW, | |
120 | GIT_STATUS_WT_NEW, | |
121 | GIT_STATUS_WT_NEW, | |
122 | GIT_STATUS_WT_DELETED, | |
123 | GIT_STATUS_WT_NEW, | |
124 | GIT_STATUS_WT_DELETED, | |
125 | GIT_STATUS_IGNORED, | |
126 | GIT_STATUS_WT_MODIFIED, | |
127 | GIT_STATUS_WT_NEW, | |
128 | GIT_STATUS_INDEX_MODIFIED, | |
129 | GIT_STATUS_WT_DELETED | GIT_STATUS_INDEX_MODIFIED, | |
130 | GIT_STATUS_WT_MODIFIED | GIT_STATUS_INDEX_MODIFIED, | |
131 | GIT_STATUS_INDEX_DELETED, | |
132 | GIT_STATUS_WT_NEW | GIT_STATUS_INDEX_DELETED, | |
133 | GIT_STATUS_INDEX_NEW, | |
134 | GIT_STATUS_WT_DELETED | GIT_STATUS_INDEX_NEW, | |
135 | GIT_STATUS_WT_MODIFIED | GIT_STATUS_INDEX_NEW, | |
136 | GIT_STATUS_WT_NEW, | |
137 | GIT_STATUS_WT_DELETED, | |
138 | GIT_STATUS_WT_DELETED, | |
139 | GIT_STATUS_WT_DELETED, | |
8e60c712 | 140 | GIT_STATUS_WT_NEW, |
a56aacf4 RB |
141 | }; |
142 | ||
e9ca852e | 143 | static const int entry_count3 = 22; |
4b136a94 RB |
144 | |
145 | ||
146 | /* entries for a copy of tests/resources/status with some mods | |
147 | * and different options to the status call | |
148 | */ | |
149 | ||
150 | static const char *entry_paths4[] = { | |
151 | ".new_file", | |
152 | "current_file", | |
153 | "current_file/current_file", | |
154 | "current_file/modified_file", | |
155 | "current_file/new_file", | |
156 | "file_deleted", | |
157 | "modified_file", | |
158 | "new_file", | |
159 | "staged_changes", | |
160 | "staged_changes_file_deleted", | |
161 | "staged_changes_modified_file", | |
162 | "staged_delete_file_deleted", | |
163 | "staged_delete_modified_file", | |
164 | "staged_new_file", | |
165 | "staged_new_file_deleted_file", | |
166 | "staged_new_file_modified_file", | |
167 | "subdir", | |
168 | "subdir/current_file", | |
169 | "subdir/deleted_file", | |
170 | "subdir/modified_file", | |
171 | "zzz_new_dir/new_file", | |
8e60c712 AR |
172 | "zzz_new_file", |
173 | "\xe8\xbf\x99", | |
4b136a94 RB |
174 | }; |
175 | ||
176 | static const unsigned int entry_statuses4[] = { | |
177 | GIT_STATUS_WT_NEW, | |
178 | GIT_STATUS_WT_DELETED, | |
179 | GIT_STATUS_WT_NEW, | |
180 | GIT_STATUS_WT_NEW, | |
181 | GIT_STATUS_WT_NEW, | |
182 | GIT_STATUS_WT_DELETED, | |
183 | GIT_STATUS_WT_MODIFIED, | |
184 | GIT_STATUS_WT_NEW, | |
185 | GIT_STATUS_INDEX_MODIFIED, | |
186 | GIT_STATUS_WT_DELETED | GIT_STATUS_INDEX_MODIFIED, | |
187 | GIT_STATUS_WT_MODIFIED | GIT_STATUS_INDEX_MODIFIED, | |
188 | GIT_STATUS_INDEX_DELETED, | |
189 | GIT_STATUS_WT_NEW | GIT_STATUS_INDEX_DELETED, | |
190 | GIT_STATUS_INDEX_NEW, | |
191 | GIT_STATUS_WT_DELETED | GIT_STATUS_INDEX_NEW, | |
192 | GIT_STATUS_WT_MODIFIED | GIT_STATUS_INDEX_NEW, | |
193 | GIT_STATUS_WT_NEW, | |
194 | GIT_STATUS_WT_DELETED, | |
195 | GIT_STATUS_WT_DELETED, | |
196 | GIT_STATUS_WT_DELETED, | |
197 | GIT_STATUS_WT_NEW, | |
198 | GIT_STATUS_WT_NEW, | |
8e60c712 | 199 | GIT_STATUS_WT_NEW, |
4b136a94 RB |
200 | }; |
201 | ||
e9ca852e | 202 | static const int entry_count4 = 23; |