aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectReader.java
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2023-02-20 22:18:22 +0100
committerMatthias Sohn <matthias.sohn@sap.com>2023-02-20 22:18:22 +0100
commitc8683db55d79b06ca7bdd04651a6520eaa7b15d9 (patch)
treeb31972f06c1696f4e2fbdbd2b2c817287878fbfa /org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectReader.java
parent63326d1036d647a4a15daf209e0e713fa557defa (diff)
parent5d5a0d537697480ae5a7d530bad283a972aadf52 (diff)
downloadjgit-c8683db55d79b06ca7bdd04651a6520eaa7b15d9.tar.gz
jgit-c8683db55d79b06ca7bdd04651a6520eaa7b15d9.zip
Merge branch 'master' into stable-6.5
* master: Externalize strings introduced in c9552aba Silence API error introduced by 596c445a PackConfig: add entry for minimum size to index Fix getPackedRefs to not throw NoSuchFileException PackObjectSizeIndex: interface and impl for the object-size index UInt24Array: Array of unsigned ints encoded in 3 bytes. PackIndex: expose the position of an object-id in the index Add pack options to preserve and prune old pack files DfsPackFile/DfsGC: Write commit graphs and expose in pack ObjectReader: Allow getCommitGraph to throw IOException Allow to perform PackedBatchRefUpdate without locking loose refs Document option "core.sha1Implementation" introduced in 59029aec UploadPack: consume delimiter in object-info command PatchApplier fix - init cache with provided tree Avoid error-prone warning Fix unused exception error-prone warning UploadPack: advertise object-info command if enabled Move MemRefDatabase creation in a separate method. DfsReaderIoStats: Add Commit Graph fields into DfsReaderIoStats Change-Id: Ic9f91f2139432999b99c444302457b3c08911009
Diffstat (limited to 'org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectReader.java')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectReader.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectReader.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectReader.java
index ae0cf42b12..69b2b5104e 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectReader.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/ObjectReader.java
@@ -512,9 +512,12 @@ public abstract class ObjectReader implements AutoCloseable {
* (default is
* {@value org.eclipse.jgit.lib.CoreConfig#DEFAULT_COMMIT_GRAPH_ENABLE}).
*
+ * @throws IOException
+ * if it cannot open any of the underlying commit graph.
+ *
* @since 6.5
*/
- public Optional<CommitGraph> getCommitGraph() {
+ public Optional<CommitGraph> getCommitGraph() throws IOException {
return Optional.empty();
}
@@ -661,7 +664,7 @@ public abstract class ObjectReader implements AutoCloseable {
}
@Override
- public Optional<CommitGraph> getCommitGraph() {
+ public Optional<CommitGraph> getCommitGraph() throws IOException{
return delegate().getCommitGraph();
}