Commit d1185aa
fetch-pack: return enum from process_acks()
process_acks() returns 0, 1, or 2, depending on whether "ready" was
received and if not, whether at least one commit was found to be common.
Replace these magic numbers with a documented enum.
Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent 7397ca3 commit d1185aa
1 file changed
+28
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1268 | 1268 | | |
1269 | 1269 | | |
1270 | 1270 | | |
1271 | | - | |
1272 | | - | |
1273 | | - | |
| 1271 | + | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
| 1284 | + | |
| 1285 | + | |
| 1286 | + | |
| 1287 | + | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
1274 | 1294 | | |
1275 | 1295 | | |
1276 | 1296 | | |
| |||
1319 | 1339 | | |
1320 | 1340 | | |
1321 | 1341 | | |
1322 | | - | |
1323 | | - | |
| 1342 | + | |
| 1343 | + | |
1324 | 1344 | | |
1325 | 1345 | | |
1326 | 1346 | | |
| |||
1508 | 1528 | | |
1509 | 1529 | | |
1510 | 1530 | | |
1511 | | - | |
| 1531 | + | |
1512 | 1532 | | |
1513 | 1533 | | |
1514 | | - | |
| 1534 | + | |
1515 | 1535 | | |
1516 | 1536 | | |
1517 | | - | |
| 1537 | + | |
1518 | 1538 | | |
1519 | 1539 | | |
1520 | 1540 | | |
| |||
0 commit comments