summaryrefslogtreecommitdiff
path: root/git/db/compat.py
diff options
context:
space:
mode:
Diffstat (limited to 'git/db/compat.py')
-rw-r--r--git/db/compat.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/git/db/compat.py b/git/db/compat.py
index 1c0ba6f5..16bf0562 100644
--- a/git/db/compat.py
+++ b/git/db/compat.py
@@ -11,3 +11,20 @@ class RepoCompatInterface(object):
@property
def bare(self):
return self.is_bare
+
+ def rev_parse(self, *args, **kwargs):
+ return self.resolve_object(*args, **kwargs)
+
+ @property
+ def odb(self):
+ """The odb is now an integrated part of each repository"""
+ return self
+
+ @property
+ def active_branch(self):
+ """The name of the currently active branch.
+
+ :return: Head to the active branch"""
+ return self.head.reference
+
+