Skip to content
suit Artifact [3a5031cc2f]
Login

Artifact [3a5031cc2f]

Artifact 3a5031cc2f6956d829950b54fa7bf5d2fca9eea0b4c08db8973b42a494b68ff8:


#ifndef SUIT_SCAN_H
#define SUIT_SCAN_H

#include "project.h"

// Find the projects under ROOTS and match each to its remote key (docs/projects.md).
// OUT is emptied first and gets one entry per project folder and per worktree.
// SET's keys, by path, replace what the scan reads. A folder suit cannot read is
// skipped with a note on stderr. Returns 0, or 1 after saying why OUT filled up.
int scan_projects(const Roots *roots, const Projects *set, Projects *out);

constexpr int SCAN_DEPTH = 4;  // folders below a root that are looked in

#endif