Commit 5ea8227
committed
rerere: represent time duration in timestamp_t internally
The two configuration variables, gc.rerereResolved and
gc.rerereUnresolved, are measured in days and are passed as such
into the prune_one() helper function, which worked in time_t to see
if an entry in the rerere database is past its expiry.
Instead, have the caller turn the number of days into the expiry
timestamp. Further, use timestamp_t instead of time_t. This will
make it possible to extend the way the configuration variable is
spelled by using date.c::parse_expiry_date() that gives the expiry
timestamp in timestamp_t.
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent e579aaa commit 5ea8227
1 file changed
Lines changed: 23 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1133 | 1133 | | |
1134 | 1134 | | |
1135 | 1135 | | |
1136 | | - | |
| 1136 | + | |
1137 | 1137 | | |
1138 | 1138 | | |
1139 | 1139 | | |
1140 | 1140 | | |
1141 | 1141 | | |
1142 | 1142 | | |
1143 | | - | |
| 1143 | + | |
1144 | 1144 | | |
1145 | 1145 | | |
1146 | 1146 | | |
| |||
1157 | 1157 | | |
1158 | 1158 | | |
1159 | 1159 | | |
1160 | | - | |
1161 | | - | |
| 1160 | + | |
| 1161 | + | |
1162 | 1162 | | |
1163 | | - | |
1164 | | - | |
| 1163 | + | |
| 1164 | + | |
1165 | 1165 | | |
1166 | 1166 | | |
1167 | 1167 | | |
| |||
1172 | 1172 | | |
1173 | 1173 | | |
1174 | 1174 | | |
1175 | | - | |
| 1175 | + | |
1176 | 1176 | | |
1177 | 1177 | | |
1178 | 1178 | | |
| 1179 | + | |
| 1180 | + | |
| 1181 | + | |
| 1182 | + | |
| 1183 | + | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
| 1187 | + | |
| 1188 | + | |
1179 | 1189 | | |
1180 | 1190 | | |
1181 | 1191 | | |
1182 | 1192 | | |
1183 | 1193 | | |
1184 | 1194 | | |
1185 | | - | |
1186 | | - | |
1187 | | - | |
| 1195 | + | |
| 1196 | + | |
| 1197 | + | |
1188 | 1198 | | |
1189 | 1199 | | |
1190 | 1200 | | |
1191 | 1201 | | |
1192 | | - | |
1193 | | - | |
| 1202 | + | |
| 1203 | + | |
1194 | 1204 | | |
1195 | 1205 | | |
1196 | 1206 | | |
| |||
1211 | 1221 | | |
1212 | 1222 | | |
1213 | 1223 | | |
1214 | | - | |
| 1224 | + | |
1215 | 1225 | | |
1216 | 1226 | | |
1217 | 1227 | | |
| |||
0 commit comments