[JGIT PATCH 09/11] Expose the Repository's ObjectDatabase object

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]