diff options
| author | Christoph Schlosser <christoph@linux.com> | 2025-08-31 01:09:37 +0200 |
|---|---|---|
| committer | Christoph Schlosser <christoph@linux.com> | 2025-08-31 15:53:33 +0200 |
| commit | 284f3972844ea124c0cd9ee5500e99440bb96aac (patch) | |
| tree | b8dee22222c38b12cc00daf98280e1b2060bcca7 /test_repo | |
| parent | b06dbf67b9ac9e329922d7911ee7a9b09419c5f0 (diff) | |
| download | git2hugo-284f3972844ea124c0cd9ee5500e99440bb96aac.tar.gz | |
g2h: Add file page
Also move helpers to dedicated files.
Diffstat (limited to 'test_repo')
| -rw-r--r-- | test_repo/_gitignore | 1 | ||||
| -rw-r--r-- | test_repo/git.tgz | bin | 22304 -> 41560 bytes | |||
| -rw-r--r-- | test_repo/pic.png | bin | 0 -> 16694 bytes | |||
| -rw-r--r-- | test_repo/src/include/lib.h | 9 | ||||
| -rw-r--r-- | test_repo/src/lib.cc | 9 | ||||
| -rw-r--r-- | test_repo/src/main.cc | 7 |
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 Binary files differindex df8887e..bac5752 100644 --- a/test_repo/git.tgz +++ b/test_repo/git.tgz diff --git a/test_repo/pic.png b/test_repo/pic.png Binary files differnew file mode 100644 index 0000000..f70142b --- /dev/null +++ b/test_repo/pic.png 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 +} |