summaryrefslogtreecommitdiffstats
path: root/g2h/git.py
diff options
context:
space:
mode:
authorChristoph Schlosser <christoph@linux.com>2025-08-25 00:12:59 +0200
committerChristoph Schlosser <christoph@linux.com>2025-08-30 18:41:33 +0200
commitbdd4756094e961f8951e4a1ddb6cd875c5b0026c (patch)
treeef93acf2f0939bede31ffab482536f962a8ad4a1 /g2h/git.py
parent7d1797a6428447ff4dfd473111f6b40dc505ac43 (diff)
downloadgit2hugo-bdd4756094e961f8951e4a1ddb6cd875c5b0026c.tar.gz
g2h: Add tree page
Diffstat (limited to 'g2h/git.py')
-rw-r--r--g2h/git.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/g2h/git.py b/g2h/git.py
index 079c50b..1e835e7 100644
--- a/g2h/git.py
+++ b/g2h/git.py
@@ -13,5 +13,8 @@ class Git:
def get_commits(self):
return list(self.repo.iter_commits())
+ def get_repo(self):
+ return self.repo
+
def get_tags(self):
return self.repo.tags