Commit 683e49d
committed
tree: don't use system stat constants
On most Unix systems, the stat constants (S_IFMT and friends) that Git
uses are the same: that is, the system values are the same ones that Git
uses. However, on zOS, this isn't the case, and the system constants
are different.
Let's add a set of our constants that are used by Git to determine the
type of an object that will be right on all platforms instead of using
the system constants. Note that the tests already cover this case;
they'll just now pass on additional systems.1 parent f177805 commit 683e49d
1 file changed
+19
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
17 | 27 | | |
18 | 28 | | |
19 | 29 | | |
| |||
209 | 219 | | |
210 | 220 | | |
211 | 221 | | |
212 | | - | |
213 | | - | |
| 222 | + | |
| 223 | + | |
214 | 224 | | |
215 | | - | |
| 225 | + | |
216 | 226 | | |
217 | | - | |
| 227 | + | |
218 | 228 | | |
| 229 | + | |
| 230 | + | |
219 | 231 | | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
| 232 | + | |
| 233 | + | |
230 | 234 | | |
231 | 235 | | |
232 | 236 | | |
| |||
0 commit comments