diff options
| author | Christoph Schlosser <christoph@linux.com> | 2025-08-24 17:14:49 +0200 |
|---|---|---|
| committer | Christoph Schlosser <christoph@linux.com> | 2025-08-24 17:14:49 +0200 |
| commit | 8f2f0d5d1176794bb7df2c42c54b7211e155d331 (patch) | |
| tree | af828007405c5a4e657188af3eccdad2f10f609b /g2h/git.py | |
| parent | 9bd3fd1bce788dce610ad7276ce1f1634019c380 (diff) | |
| download | git2hugo-8f2f0d5d1176794bb7df2c42c54b7211e155d331.tar.gz | |
g2h: Turn the git class into a simple wrapping frontend
Diffstat (limited to 'g2h/git.py')
| -rw-r--r-- | g2h/git.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |