summaryrefslogtreecommitdiff
path: root/git-gmi
diff options
context:
space:
mode:
Diffstat (limited to 'git-gmi')
-rw-r--r--git-gmi/git.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/git-gmi/git.py b/git-gmi/git.py
index d65c937..8a91f0b 100644
--- a/git-gmi/git.py
+++ b/git-gmi/git.py
@@ -305,7 +305,7 @@ class GitGmiRepo:
items = len(contents)
response = (
f"{STATUS_SUCCESS} {META_GEMINI}\r\n"
- + self.generate_header()
+ + self._generate_header()
+ f"## {self.name}{'/' if location else ''}{'/'.join(location)}/"
f" | {items} {'items' if items > 1 else 'item'}\n\n"
)
@@ -340,7 +340,7 @@ class GitGmiRepo:
blob = self._get_blob(branch, location)
response = (
f"{STATUS_SUCCESS} {META_GEMINI}\r\n"
- + self.generate_header()
+ + self._generate_header()
+ f"## {self.name}/{'/'.join(location)} | {convert_filesize(blob.size)}\n\n"
f"=> {blob.name}?raw view raw\n\n"
f"```\n"