Commit c15087d
fsck.c: move gitmodules_{found,done} into fsck_options
Move the gitmodules_{found,done} static variables added in
159e7b0 (fsck: detect gitmodules files, 2018-05-02) into the
fsck_options struct. It makes sense to keep all the context in the
same place.
This requires changing the recently added register_found_gitmodules()
function added in 5476e1e (fetch-pack: print and use dangling
.gitmodules, 2021-02-22) to take fsck_options. That function will be
removed in a subsequent commit, but as it'll require the new
gitmodules_found attribute of "fsck_options" we need this intermediate
step first.
An earlier version of this patch removed the small amount of
duplication we now have between FSCK_OPTIONS_{DEFAULT,STRICT} with a
FSCK_OPTIONS_COMMON macro. I don't think such de-duplication is worth
it for this amount of copy/pasting.
Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>1 parent 53692df commit c15087d
3 files changed
+19
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
998 | 998 | | |
999 | 999 | | |
1000 | 1000 | | |
1001 | | - | |
| 1001 | + | |
1002 | 1002 | | |
1003 | 1003 | | |
1004 | 1004 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | 22 | | |
26 | 23 | | |
27 | 24 | | |
| |||
606 | 603 | | |
607 | 604 | | |
608 | 605 | | |
609 | | - | |
| 606 | + | |
610 | 607 | | |
611 | 608 | | |
612 | 609 | | |
| |||
620 | 617 | | |
621 | 618 | | |
622 | 619 | | |
623 | | - | |
| 620 | + | |
624 | 621 | | |
625 | 622 | | |
626 | 623 | | |
| |||
1132 | 1129 | | |
1133 | 1130 | | |
1134 | 1131 | | |
1135 | | - | |
| 1132 | + | |
1136 | 1133 | | |
1137 | | - | |
| 1134 | + | |
1138 | 1135 | | |
1139 | 1136 | | |
1140 | 1137 | | |
| |||
1199 | 1196 | | |
1200 | 1197 | | |
1201 | 1198 | | |
1202 | | - | |
| 1199 | + | |
1203 | 1200 | | |
1204 | | - | |
| 1201 | + | |
1205 | 1202 | | |
1206 | 1203 | | |
1207 | 1204 | | |
| |||
1210 | 1207 | | |
1211 | 1208 | | |
1212 | 1209 | | |
1213 | | - | |
| 1210 | + | |
1214 | 1211 | | |
1215 | 1212 | | |
1216 | 1213 | | |
1217 | 1214 | | |
1218 | 1215 | | |
1219 | | - | |
| 1216 | + | |
1220 | 1217 | | |
1221 | 1218 | | |
1222 | 1219 | | |
| |||
1241 | 1238 | | |
1242 | 1239 | | |
1243 | 1240 | | |
1244 | | - | |
1245 | | - | |
| 1241 | + | |
| 1242 | + | |
1246 | 1243 | | |
1247 | 1244 | | |
1248 | 1245 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| 121 | + | |
| 122 | + | |
121 | 123 | | |
122 | 124 | | |
123 | 125 | | |
124 | 126 | | |
125 | 127 | | |
| 128 | + | |
| 129 | + | |
126 | 130 | | |
127 | 131 | | |
128 | 132 | | |
129 | 133 | | |
| 134 | + | |
| 135 | + | |
130 | 136 | | |
131 | 137 | | |
132 | 138 | | |
| |||
146 | 152 | | |
147 | 153 | | |
148 | 154 | | |
149 | | - | |
| 155 | + | |
| 156 | + | |
150 | 157 | | |
151 | 158 | | |
152 | 159 | | |
| |||
0 commit comments