aboutsummaryrefslogtreecommitdiff
path: root/supergit
diff options
context:
space:
mode:
Diffstat (limited to 'supergit')
-rw-r--r--supergit/src/diff.rs5
-rw-r--r--supergit/src/lib.rs5
-rw-r--r--supergit/src/raw/#tree_walk.rs#1
l---------supergit/src/raw/.#tree_walk.rs1
-rw-r--r--supergit/src/raw/branch_walk.rs1
-rw-r--r--supergit/src/raw/mod.rs3
-rw-r--r--supergit/src/raw/tree_walk.rs1
7 files changed, 16 insertions, 1 deletions
diff --git a/supergit/src/diff.rs b/supergit/src/diff.rs
new file mode 100644
index 0000000..e92a4cd
--- /dev/null
+++ b/supergit/src/diff.rs
@@ -0,0 +1,5 @@
+
+/// A diff between two commits
+pub struct Diff {
+
+}
diff --git a/supergit/src/lib.rs b/supergit/src/lib.rs
index 3e02d30..e209fac 100644
--- a/supergit/src/lib.rs
+++ b/supergit/src/lib.rs
@@ -7,6 +7,9 @@ pub use branch::{Branch, BranchCommit};
mod commit;
pub use commit::{CommitId, Commit};
+mod diff;
+pub use diff::Diff;
+
pub(crate) mod raw;
use std::sync::atomic::{AtomicUsize, Ordering};
@@ -25,7 +28,7 @@ impl Repository {
/// basically every time your program expects changes to have
/// happened. Polling this function is not recommended.
pub fn sync(&self) {
-
+ todo!()
}
}
diff --git a/supergit/src/raw/#tree_walk.rs# b/supergit/src/raw/#tree_walk.rs#
new file mode 100644
index 0000000..a693f62
--- /dev/null
+++ b/supergit/src/raw/#tree_walk.rs#
@@ -0,0 +1 @@
+//! Walk the file tree for a particular commit \ No newline at end of file
diff --git a/supergit/src/raw/.#tree_walk.rs b/supergit/src/raw/.#tree_walk.rs
new file mode 120000
index 0000000..a0d2666
--- /dev/null
+++ b/supergit/src/raw/.#tree_walk.rs
@@ -0,0 +1 @@
+spacekookie@qq.53166 \ No newline at end of file
diff --git a/supergit/src/raw/branch_walk.rs b/supergit/src/raw/branch_walk.rs
new file mode 100644
index 0000000..dfc7485
--- /dev/null
+++ b/supergit/src/raw/branch_walk.rs
@@ -0,0 +1 @@
+//! Walk along a branch parsing commit metadata
diff --git a/supergit/src/raw/mod.rs b/supergit/src/raw/mod.rs
index b2f67a4..98602ca 100644
--- a/supergit/src/raw/mod.rs
+++ b/supergit/src/raw/mod.rs
@@ -1,5 +1,8 @@
//! Raw representation wrappers for libgit2
+mod branch_walk;
+mod tree_walk;
+
use git2::{self, Repository};
pub(crate) type RawResult<T> = Result<T, RawError>;
diff --git a/supergit/src/raw/tree_walk.rs b/supergit/src/raw/tree_walk.rs
new file mode 100644
index 0000000..0533764
--- /dev/null
+++ b/supergit/src/raw/tree_walk.rs
@@ -0,0 +1 @@
+//! Walk the file tree for a particular commit