blob: 515037a7bac2c13e8cc33e3b16d8e014403e8d4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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