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/cli.py | |
| parent | 9bd3fd1bce788dce610ad7276ce1f1634019c380 (diff) | |
| download | git2hugo-8f2f0d5d1176794bb7df2c42c54b7211e155d331.tar.gz | |
g2h: Turn the git class into a simple wrapping frontend
Diffstat (limited to 'g2h/cli.py')
| -rw-r--r-- | g2h/cli.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -19,11 +19,11 @@ def main(): args = parse_args() git = Git(args.repo_path) - branches = git.get_branches() + branches = sorted(git.get_branches(), key=lambda b: b.commit.committed_date, reverse=True) commits = git.get_commits() # TODO: Fix this for repo_path=(.|~) project_name = args.name if args.name is not None else os.path.basename(args.repo_path) - tags = git.get_tags() + tags = sorted(git.get_tags(), key=lambda t: t.commit.committed_date, reverse=True) factory = PageFactory(args.out_dir, project_name) factory.new_overview(branches, tags).render() |