Some code may need direct access to the database reference; this actually should be preferred over direct access to the objects directory as the database is a much more abstract concept. Signed-off-by: Shawn O. Pearce <spearce@xxxxxxxxxxx> --- .../src/org/spearce/jgit/lib/Repository.java | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/org.spearce.jgit/src/org/spearce/jgit/lib/Repository.java b/org.spearce.jgit/src/org/spearce/jgit/lib/Repository.java index e3ac01b..1076fe1 100644 --- a/org.spearce.jgit/src/org/spearce/jgit/lib/Repository.java +++ b/org.spearce.jgit/src/org/spearce/jgit/lib/Repository.java @@ -187,6 +187,13 @@ public File getObjectsDirectory() { } /** + * @return the object database which stores this repository's data. + */ + public ObjectDatabase getObjectDatabase() { + return objectDatabase; + } + + /** * @return the configuration of this repository */ public RepositoryConfig getConfig() { -- 1.6.4.rc0.117.g28cb -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html