summaryrefslogtreecommitdiffstats
path: root/test_repo
diff options
context:
space:
mode:
authorChristoph Schlosser <christoph@linux.com>2025-08-31 01:09:37 +0200
committerChristoph Schlosser <christoph@linux.com>2025-08-31 15:53:33 +0200
commit284f3972844ea124c0cd9ee5500e99440bb96aac (patch)
treeb8dee22222c38b12cc00daf98280e1b2060bcca7 /test_repo
parentb06dbf67b9ac9e329922d7911ee7a9b09419c5f0 (diff)
downloadgit2hugo-284f3972844ea124c0cd9ee5500e99440bb96aac.tar.gz
g2h: Add file page
Also move helpers to dedicated files.
Diffstat (limited to 'test_repo')
-rw-r--r--test_repo/_gitignore1
-rw-r--r--test_repo/git.tgzbin22304 -> 41560 bytes
-rw-r--r--test_repo/pic.pngbin0 -> 16694 bytes
-rw-r--r--test_repo/src/include/lib.h9
-rw-r--r--test_repo/src/lib.cc9
-rw-r--r--test_repo/src/main.cc7
6 files changed, 26 insertions, 0 deletions
diff --git a/test_repo/_gitignore b/test_repo/_gitignore
new file mode 100644
index 0000000..9daeafb
--- /dev/null
+++ b/test_repo/_gitignore
@@ -0,0 +1 @@
+test
diff --git a/test_repo/git.tgz b/test_repo/git.tgz
index df8887e..bac5752 100644
--- a/test_repo/git.tgz
+++ b/test_repo/git.tgz
Binary files differ
diff --git a/test_repo/pic.png b/test_repo/pic.png
new file mode 100644
index 0000000..f70142b
--- /dev/null
+++ b/test_repo/pic.png
Binary files differ
diff --git a/test_repo/src/include/lib.h b/test_repo/src/include/lib.h
new file mode 100644
index 0000000..28fbe8b
--- /dev/null
+++ b/test_repo/src/include/lib.h
@@ -0,0 +1,9 @@
+#pragma once
+
+#include <string_view>
+
+namespace lib {
+
+std::string_view print();
+
+}
diff --git a/test_repo/src/lib.cc b/test_repo/src/lib.cc
new file mode 100644
index 0000000..2083478
--- /dev/null
+++ b/test_repo/src/lib.cc
@@ -0,0 +1,9 @@
+#include "lib.h"
+
+#include <string_view>
+
+namespace lib {
+std::string_view print() {
+ return "test";
+}
+}
diff --git a/test_repo/src/main.cc b/test_repo/src/main.cc
new file mode 100644
index 0000000..db3a36e
--- /dev/null
+++ b/test_repo/src/main.cc
@@ -0,0 +1,7 @@
+#include "lib.h"
+
+#include <iostream>
+
+int main() {
+ std::cout << lib::print() << std::endl
+}