aboutsummaryrefslogtreecommitdiff
path: root/apps/servers/octopus/supergit/src/files/mod.rs
diff options
context:
space:
mode:
authorMx Kookie <kookie@spacekookie.de>2021-01-06 23:04:53 +0100
committerMx Kookie <kookie@spacekookie.de>2021-01-06 23:04:53 +0100
commitc8f3364c742c3528ee0709a44e82643fee2f8afe (patch)
tree8c63dc68b0b9af25a138083825de424546871f6f /apps/servers/octopus/supergit/src/files/mod.rs
parentfcc89b1b5bcbcb00ce02cb461b186ef0337312e3 (diff)
octopus: supergit: add interface to query specific store paths
Diffstat (limited to 'apps/servers/octopus/supergit/src/files/mod.rs')
-rw-r--r--apps/servers/octopus/supergit/src/files/mod.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/apps/servers/octopus/supergit/src/files/mod.rs b/apps/servers/octopus/supergit/src/files/mod.rs
new file mode 100644
index 000000000000..d278818b23ab
--- /dev/null
+++ b/apps/servers/octopus/supergit/src/files/mod.rs
@@ -0,0 +1,15 @@
+//! File tree abstractions
+//!
+//! The supergit files API is split into two parts: `FileTree`, which
+//! is mostly used internally and only exposed to allow external tools
+//! to rely on the same indexing mechanism as supergit, and
+//! `Explorer`, which is a high-level API for loading trees for
+//! specific commits.
+//!
+
+pub(self) mod tree_utils;
+mod tree;
+pub use tree::{FileTree, TreeEntry, EntryType};
+
+mod explorer;
+pub use explorer::{Explorer, Yield, YieldType};