diff options
| author | Christoph Schlosser <christoph@linux.com> | 2025-08-24 14:08:47 +0200 |
|---|---|---|
| committer | Christoph Schlosser <christoph@linux.com> | 2025-08-24 14:08:47 +0200 |
| commit | 49fb19170a74accf51aa13ef0600a0d15f707737 (patch) | |
| tree | a0a66e919e031638129ab9b128eb74c12e376fe7 /g2h/git.py | |
| parent | 782a350e1f56292176ac8471195c889e47b2b841 (diff) | |
| download | git2hugo-49fb19170a74accf51aa13ef0600a0d15f707737.tar.gz | |
g2h: Add log page
Diffstat (limited to 'g2h/git.py')
| -rw-r--r-- | g2h/git.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -7,11 +7,11 @@ class Git: except git.InvalidGitRepositoryError: raise ValueError(f"Invalid git repository at {repo_path}") - def get_all_commits(self): - return list(self.repo.iter_commits()) - def get_branches(self): return sorted(self.repo.branches, key=lambda b: b.commit.committed_date, reverse=True) + 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) |