Commit 8817f0c
combine-diff: factor out stat-format mask
There are several conditionals in the combine diff code that check if
we're doing --stat or --numstat output. Since these must all remain in
sync, let's pull them out into a separate bit-mask.
Arguably this could go into diff.h along with the other DIFF_FORMAT
macros, but it's not clear that the definition of "which formats are
stat" is universal (e.g., does --dirstat count? --summary?). So let's
keep this local to combine-diff.c, where the meaning is more clearly
"stat formats that combine-diff supports".
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent 48edf3a commit 8817f0c
1 file changed
+8
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1321 | 1321 | | |
1322 | 1322 | | |
1323 | 1323 | | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
1324 | 1329 | | |
1325 | 1330 | | |
1326 | 1331 | | |
| |||
1342 | 1347 | | |
1343 | 1348 | | |
1344 | 1349 | | |
1345 | | - | |
1346 | | - | |
| 1350 | + | |
1347 | 1351 | | |
1348 | 1352 | | |
1349 | 1353 | | |
| |||
1470 | 1474 | | |
1471 | 1475 | | |
1472 | 1476 | | |
1473 | | - | |
1474 | | - | |
| 1477 | + | |
1475 | 1478 | | |
1476 | 1479 | | |
1477 | 1480 | | |
| |||
1515 | 1518 | | |
1516 | 1519 | | |
1517 | 1520 | | |
1518 | | - | |
1519 | | - | |
| 1521 | + | |
1520 | 1522 | | |
1521 | 1523 | | |
1522 | 1524 | | |
| |||
0 commit comments