Commit 931e5ca
hash-object: merge HASH_* and INDEX_* flags
The hash-object command has its own custom flag bits that it sets based
on command-line options. But since we dropped hash_literally() in the
previous commit, the only thing we do with those flag bits is convert
them directly into "index_flags" to pass to index_fd().
This extra layer of indirection makes the code harder to read and reason
about. Let's just use the INDEX_* flags directly.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent 65a6a79 commit 931e5ca
1 file changed
+6
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | 22 | | |
28 | 23 | | |
29 | 24 | | |
30 | | - | |
31 | 25 | | |
32 | 26 | | |
33 | 27 | | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | 28 | | |
40 | | - | |
| 29 | + | |
41 | 30 | | |
42 | 31 | | |
43 | 32 | | |
44 | | - | |
45 | | - | |
| 33 | + | |
| 34 | + | |
46 | 35 | | |
47 | 36 | | |
48 | 37 | | |
| |||
94 | 83 | | |
95 | 84 | | |
96 | 85 | | |
97 | | - | |
| 86 | + | |
98 | 87 | | |
99 | 88 | | |
100 | 89 | | |
101 | 90 | | |
102 | 91 | | |
103 | | - | |
| 92 | + | |
104 | 93 | | |
105 | 94 | | |
106 | 95 | | |
| |||
114 | 103 | | |
115 | 104 | | |
116 | 105 | | |
117 | | - | |
| 106 | + | |
118 | 107 | | |
119 | 108 | | |
120 | 109 | | |
| |||
0 commit comments