Commit 29ec6af
alternates: encapsulate alt->base munging
The alternate_object_database struct holds a path to the
alternate objects, but we also use that buffer as scratch
space for forming loose object filenames. Let's pull that
logic into a helper function so that we can more easily
modify it.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent 7f0fa2c commit 29ec6af
1 file changed
+13
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
207 | 214 | | |
208 | 215 | | |
209 | 216 | | |
| |||
601 | 608 | | |
602 | 609 | | |
603 | 610 | | |
604 | | - | |
605 | | - | |
| 611 | + | |
| 612 | + | |
606 | 613 | | |
607 | 614 | | |
608 | 615 | | |
| |||
1600 | 1607 | | |
1601 | 1608 | | |
1602 | 1609 | | |
1603 | | - | |
1604 | | - | |
| 1610 | + | |
| 1611 | + | |
1605 | 1612 | | |
1606 | 1613 | | |
1607 | 1614 | | |
| |||
1621 | 1628 | | |
1622 | 1629 | | |
1623 | 1630 | | |
1624 | | - | |
1625 | | - | |
| 1631 | + | |
| 1632 | + | |
1626 | 1633 | | |
1627 | 1634 | | |
1628 | 1635 | | |
| |||
0 commit comments