]> arthur.barton.de Git - bup.git/commit
git: split out idx file writing to a separate class
authorJohannes Berg <johannes@sipsolutions.net>
Fri, 3 Jan 2020 12:53:20 +0000 (13:53 +0100)
committerRob Browning <rlb@defaultvalue.org>
Sat, 25 Apr 2020 19:35:09 +0000 (14:35 -0500)
commit23d656996cf2c65016f9f9a875bbe671c0fab9f2
treea06dc9d599f9d4b1fa5a44cde8d1a754876fc5f9
parent13ddba140c3f89f815ec774a4f8adbfe1867d33e
git: split out idx file writing to a separate class

Split the idx file writing into a separate class, to make that
kind of action available separately. This will be useful for the
next patch where we use it to test some idx/midx code.

In the future, it'll also be useful for encrypted repositories
since the idx format there will be useful for local caching to
take advantage of midx and bloom code as is, but the packwriter
will of course not be useful.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
(cherry picked from commit bbeea3a3f5408d8752fa38a0da9d0de6d6aa30d8)
Tested-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/git.py
lib/bup/t/tgit.py