Cybrkyd's git repositories

GitGen • commit: dbc2dc4

commit dbc2dc42aea9d931d2f2c3e254a47a7dd3e23bc63052f08d2e5b985529315425
author cybrkyd <noreply@cybrkyd.com> 2026-01-13 12:21:52 +0000
committer cybrkyd <noreply@cybrkyd.com> 2026-01-13 12:21:52 +0000

Commit Message

Space and indent clean-up

📊 Diffstat

gitgen.py 8
1 files changed, 4 insertions(+), 4 deletions(-)

Diff

diff --git a/gitgen.py b/gitgen.py
index 8cc5e10..0b9e605 100644
--- a/gitgen.py
+++ b/gitgen.py
@@ -183,7 +183,7 @@ class GitRepoScanner:
tags = []
if tags_output:
tags = [tag.strip() for tag in tags_output.strip().split('\n') if tag.strip()]
-
+
commits.append({
'hash': commit_hash,
'short_hash': commit_hash[:7],
@@ -471,13 +471,13 @@ class HTMLGenerator:
for commit in commits:
commit_details = self.scanner.get_commit_details(repo['path'], commit['hash'])
formatted_message = commit_details.get('message_escaped', '') if commit_details else commit.get('message_escaped', '')
-
+
# Generate tags HTML if present
tags_html = ""
if commit.get('tags'):
tags_list = " ".join([f'<span class="tag-badge">{html.escape(tag)}</span>' for tag in commit['tags']])
tags_html = f'<span class="label" >tag:</span>{tags_list}</span>'
-
+
html_fragments.append(f"""
<div class="commit-item commit-meta">
<span class="label">commit:</span>
@@ -535,7 +535,7 @@ class HTMLGenerator:
tags = []
if tags_output:
tags = [tag.strip() for tag in tags_output.strip().split('\n') if tag.strip()]
-
+
# Generate tags HTML if present
tags_html = ""
if tags: