diff options
context:
space:
mode:
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Restyle the sources and fix the audit's findings
Diffstat (limited to '')
-rw-r--r--source/scan-tree.h14
1 file changed, 14 insertions, 0 deletions
diff --git a/source/scan-tree.h b/source/scan-tree.h
index def0a7a..515037a 100644
--- a/source/scan-tree.h
+++ b/source/scan-tree.h
@@ -1,2 +1,16 @@
+/*
+ * Discovery of repositories on disk, so that an administrator can point cgit
+ * at a directory instead of naming every repository in cgitrc. The tree below
+ * that directory is walked for bare repositories and working trees, or when a
+ * project list is configured only the paths it names are visited. Every
+ * repository found is added to the shared repository list under its path
+ * relative to the root of the scan.
+ */
+
+#ifndef CGIT_SCAN_TREE_H
+#define CGIT_SCAN_TREE_H
+
extern void scan_projects(const char *path, const char *projectsfile);
extern void scan_tree(const char *path);
+
+#endif // CGIT_SCAN_TREE_H