From 80767bc9732bf6716697198e53ff2cb8d4ae96be Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Wed, 12 Aug 2026 18:23:17 -1000 Subject: Restyle the sources and fix the audit's findings --- source/scan-tree.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'source/scan-tree.h') 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 -- cgit v2.8.0