diff options
Diffstat (limited to 'supergit/src/commit.rs')
-rw-r--r-- | supergit/src/commit.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/supergit/src/commit.rs b/supergit/src/commit.rs new file mode 100644 index 0000000..46a6ab4 --- /dev/null +++ b/supergit/src/commit.rs @@ -0,0 +1,11 @@ +pub type CommitId = usize; + +/// Represent a commit on a repository +/// +/// This abstraction only contains metadata required to fetch the full +/// commit from disk, if it is queried. Any operation on this type +/// will block to first load +pub struct Commit { + pub id: CommitId, + hash: String, +} |