From 8f2f0d5d1176794bb7df2c42c54b7211e155d331 Mon Sep 17 00:00:00 2001 From: Christoph Schlosser Date: Sun, 24 Aug 2025 17:14:49 +0200 Subject: g2h: Turn the git class into a simple wrapping frontend --- g2h/git.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'g2h/git.py') diff --git a/g2h/git.py b/g2h/git.py index f3f4809..079c50b 100644 --- a/g2h/git.py +++ b/g2h/git.py @@ -8,10 +8,10 @@ class Git: raise ValueError(f"Invalid git repository at {repo_path}") def get_branches(self): - return sorted(self.repo.branches, key=lambda b: b.commit.committed_date, reverse=True) + return self.repo.branches def get_commits(self): return list(self.repo.iter_commits()) def get_tags(self): - return sorted(self.repo.tags, key=lambda b: b.commit.committed_date, reverse=True) + return self.repo.tags -- cgit v1.2.3