From 284f3972844ea124c0cd9ee5500e99440bb96aac Mon Sep 17 00:00:00 2001 From: Christoph Schlosser Date: Sun, 31 Aug 2025 01:09:37 +0200 Subject: g2h: Add file page Also move helpers to dedicated files. --- test_repo/_gitignore | 1 + test_repo/git.tgz | Bin 22304 -> 41560 bytes test_repo/pic.png | Bin 0 -> 16694 bytes test_repo/src/include/lib.h | 9 +++++++++ test_repo/src/lib.cc | 9 +++++++++ test_repo/src/main.cc | 7 +++++++ 6 files changed, 26 insertions(+) create mode 100644 test_repo/_gitignore create mode 100644 test_repo/pic.png create mode 100644 test_repo/src/include/lib.h create mode 100644 test_repo/src/lib.cc create mode 100644 test_repo/src/main.cc (limited to 'test_repo') 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 Binary files a/test_repo/git.tgz and b/test_repo/git.tgz differ diff --git a/test_repo/pic.png b/test_repo/pic.png new file mode 100644 index 0000000..f70142b Binary files /dev/null and b/test_repo/pic.png 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 + +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 + +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 + +int main() { + std::cout << lib::print() << std::endl +} -- cgit v1.2.3