diff options
Diffstat (limited to 'apps/servers/octopus/supergit/src/repo.rs')
-rw-r--r-- | apps/servers/octopus/supergit/src/repo.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/servers/octopus/supergit/src/repo.rs b/apps/servers/octopus/supergit/src/repo.rs index 3d802a929e77..2edc78dcecf7 100644 --- a/apps/servers/octopus/supergit/src/repo.rs +++ b/apps/servers/octopus/supergit/src/repo.rs @@ -1,6 +1,6 @@ //! Raw representation wrappers for libgit2 -use crate::{Branch, BranchCommit}; +use crate::branch::{Branch, BranchCommit}; use git2::{self, Oid}; use std::{fmt, sync::Arc}; @@ -104,7 +104,7 @@ impl Repository { /// desired one. If you want to make repeated queries onto the /// branch set, it's recommended you call `branches()`, and cache /// the data yourself. - pub fn get_branch(&self, name: String) -> Option<Branch> { + pub fn branch(&self, name: String) -> Option<Branch> { self.branches().ok().and_then(|ok| { ok.into_iter() .filter(|b| b.name().is_some()) |