aboutsummaryrefslogtreecommitdiff
path: root/apps/servers/octopus/supergit/src/branch.rs
diff options
context:
space:
mode:
Diffstat (limited to 'apps/servers/octopus/supergit/src/branch.rs')
-rw-r--r--apps/servers/octopus/supergit/src/branch.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/servers/octopus/supergit/src/branch.rs b/apps/servers/octopus/supergit/src/branch.rs
index bbbf96dbf2c5..7d62941bdb51 100644
--- a/apps/servers/octopus/supergit/src/branch.rs
+++ b/apps/servers/octopus/supergit/src/branch.rs
@@ -1,3 +1,5 @@
+//! Type system for working with git branches
+
use crate::{Commit, HashId};
use atomptr::AtomPtr;
use git2::Repository;
@@ -114,7 +116,7 @@ impl Branch {
}
/// Get the current HEAD commit
- pub fn get_head(&self) -> Commit {
+ pub fn head(&self) -> Commit {
Commit::new(&self.repo, self.head.clone()).unwrap()
}
@@ -326,7 +328,7 @@ pub enum IterMode {
BreadthFirst,
}
-/// the limit applied to a branch segment
+/// Limiter applied to a branch segment
pub enum SegLimit {
/// No limit, enumerating all children
None,