diff options
author | Jonathan Tan <jonathantanmy@google.com> | 2019-08-28 09:45:21 -0700 |
---|---|---|
committer | Jonathan Tan <jonathantanmy@google.com> | 2019-08-28 10:28:42 -0700 |
commit | f1f7b4288272ae932038c4d83546c91edb856a3e (patch) | |
tree | d12cb7cb9b6a4132c50b8675ccc33c8d084fcaa3 /org.eclipse.jgit.packaging/org.eclipse.jgit.target/jgit-4.9.tpd | |
parent | 9d04f8f7697221edd837d3055336e19e85448475 (diff) | |
download | jgit-f1f7b4288272ae932038c4d83546c91edb856a3e.tar.gz jgit-f1f7b4288272ae932038c4d83546c91edb856a3e.zip |
DfsCachedPack: Add accessor for packfile object
In order to support implementations of CachedPackUriProvider (which need
to supply, among other things, the checksum of the packfile
corresponding to a CachedPack), in a004820858 ("UploadPack: support
custom packfile-to-URI mapping", 2019-08-20), the method getCheckSum()
was added to PackIndex. However, there is no way to access the PackIndex
from a DfsCachedPack.
Therefore, add an accessor for the DfsPackFile stored in the
DfsCachedPack. Now, a user who has a DfsCachedPack can use
DfsCachedPack#getPackFile then DfsPackFile#getPackIndex then
PackIndex#getCheckSum to obtain the checksum of a pack.
Change-Id: Ia010c016f6cac0f058ee20eff4c10f57338bfefc
Signed-off-by: Jonathan Tan <jonathantanmy@google.com>
Diffstat (limited to 'org.eclipse.jgit.packaging/org.eclipse.jgit.target/jgit-4.9.tpd')
0 files changed, 0 insertions, 0 deletions