summaryrefslogtreecommitdiffstats
path: root/src/g2h/tree.py
diff options
context:
space:
mode:
authorChristoph Schlosser <christoph@linux.com>2025-09-19 19:21:11 +0200
committerChristoph Schlosser <christoph@linux.com>2025-09-19 19:21:11 +0200
commita3324b7e71ec48daab81981e7d85967a590d4f79 (patch)
treedef4a8d901d9a56047a0e63f5f3d93803c93ee87 /src/g2h/tree.py
parentbd403e6ab18d5cc7818e86d43c3ca0b15c5e53a1 (diff)
downloadgit2hugo-a3324b7e71ec48daab81981e7d85967a590d4f79.tar.gz
g2h: Add utility script
Also move the sources into the more conventional src/g2h dir
Diffstat (limited to 'src/g2h/tree.py')
-rw-r--r--src/g2h/tree.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/g2h/tree.py b/src/g2h/tree.py
new file mode 100644
index 0000000..bd8116c
--- /dev/null
+++ b/src/g2h/tree.py
@@ -0,0 +1,2 @@
+def safe_join(tree, path):
+ return tree.join(path) if path else tree