Commit 6ac9760
packed_object_info(): use object_id internally for delta base
The previous commit changed the public interface of packed_object_info()
to return a struct object_id rather than a bare hash. That enables us to
convert our internal helper, as well. We can use nth_packed_object_id()
directly for OFS_DELTA, but we'll still have to use oidread() to pull
the hash for a REF_DELTA out of the packfile.
There should be no additional cost, since we're copying directly into
the object_id the caller provided us (just as we did before; it's just
happening now via nth_packed_object_id()).
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent b99b6bc commit 6ac9760
1 file changed
+15
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1225 | 1225 | | |
1226 | 1226 | | |
1227 | 1227 | | |
1228 | | - | |
1229 | | - | |
1230 | | - | |
1231 | | - | |
1232 | | - | |
| 1228 | + | |
| 1229 | + | |
| 1230 | + | |
| 1231 | + | |
| 1232 | + | |
| 1233 | + | |
1233 | 1234 | | |
1234 | 1235 | | |
1235 | 1236 | | |
1236 | | - | |
| 1237 | + | |
| 1238 | + | |
1237 | 1239 | | |
1238 | 1240 | | |
1239 | 1241 | | |
1240 | 1242 | | |
1241 | 1243 | | |
1242 | 1244 | | |
1243 | | - | |
| 1245 | + | |
1244 | 1246 | | |
1245 | 1247 | | |
1246 | 1248 | | |
1247 | | - | |
| 1249 | + | |
1248 | 1250 | | |
1249 | | - | |
| 1251 | + | |
1250 | 1252 | | |
1251 | | - | |
| 1253 | + | |
1252 | 1254 | | |
1253 | 1255 | | |
1254 | 1256 | | |
| |||
1558 | 1560 | | |
1559 | 1561 | | |
1560 | 1562 | | |
1561 | | - | |
1562 | | - | |
1563 | | - | |
1564 | | - | |
1565 | | - | |
| 1563 | + | |
| 1564 | + | |
| 1565 | + | |
1566 | 1566 | | |
1567 | 1567 | | |
1568 | 1568 | | |
1569 | | - | |
1570 | | - | |
1571 | 1569 | | |
1572 | 1570 | | |
1573 | 1571 | | |
| |||
0 commit comments