Re: [PATCH v3 6/6] bundle: generate packfiles via the object database
Karthik Nayak <[email protected]>
| Newsgroups | org.kernel.vger.git |
|---|---|
| Message-ID | <CAOLa=ZQ7-_=T1NSXY433oME8OoddJOuLX0wmdbk2ocQ0JTAuKQ@mail.gmail.com> |
Patrick Steinhardt <[email protected]> writes: > git-bundle(1) spawns git-pack-objects(1) directly to generate the pack > data that gets appended to the bundle header. While bundles are not > part of the wire protocol, they are a transfer mechanism for packs all > the same, so convert them to use the pack generation interface of the > object database as well. > > This makes the pack generator the single spawn point for all pack > streams that leave the repository, leaving only local maintenance tasks > like git-repack(1) with direct knowledge of git-pack-objects(1). > > Signed-off-by: Patrick Steinhardt <[email protected]> > --- > builtin/bundle.c | 10 +------- > bundle.c | 69 ++++++++++++++++++++++++++++---------------------------- > bundle.h | 3 +-- > 3 files changed, 37 insertions(+), 45 deletions(-) > > diff --git a/builtin/bundle.c b/builtin/bundle.c > index bfafadc984..de86e092a6 100644 > --- a/builtin/bundle.c > +++ b/builtin/bundle.c > @@ -69,7 +69,6 @@ static int parse_options_cmd_bundle(int argc, > > static int cmd_bundle_create(int argc, const char **argv, const char *prefix, > struct repository *repo UNUSED) { This '{' should be on the next line, but that's not on you :) [snip] The rest looks good.
signature.asc
(application/pgp-signature, 690 B)
-----BEGIN PGP SIGNATURE----- iQHKBAEBCgA0FiEEV85Mf2N1cQ/LZcYGPtWfJI5GjH8FAmqG4tAWHGthcnRoaWsu MTg4QGdtYWlsLmNvbQAKCRA+1Z8kjkaMfwUbC/9Trzb/9WOfqmaRki8jXHor+YlS pj5hegqgAi6Bky5FQBpQJIMHmFI87MtFmCi2sRPFvycZ90xxSCo+Nvk9tHdM4Tvc a4KyfUvk4TlQv0beHIIWGQQ5XC+Bflo2yL9d5POjGkfd/0iPKhRTScKiJdPInibk 6wUh/QoltEyqj4LVveQuYJLr83wlKYvi1jS4DniuNqRIzrwBSce9+hgyqq1c06D0 OfQmux1KMKWXo/p4ynOFH7AtWLGwzgCGwLYyCFjbOGBv2sPchz77BILOn01yfaCn Xz3cy24QP1orF2Xy0iNGTkyNmISM+yO/Lt5nsHBdU7f1dlGXS0w6bZcmPj4ENfXL L6FZSNcBumU7Zg0LJ6cPs6OXYigIBgWz09tAxcl35b2HNyQMCHqu9s8WK4/7z9Zv 3PNAvWoPLvFHSzWY8w853EPhg4aQtJVvKSOZUxQfAJRvFaZGw4KzB+TQWM9ZyV5i eH9/ALvPpfAayyB+x4yEaQjZxovEaYO7Qruod68= =x9sn -----END PGP SIGNATURE-----