diff options
author | Mx Kookie <kookie@spacekookie.de> | 2021-01-06 23:04:53 +0100 |
---|---|---|
committer | Mx Kookie <kookie@spacekookie.de> | 2021-01-06 23:04:53 +0100 |
commit | c8f3364c742c3528ee0709a44e82643fee2f8afe (patch) | |
tree | 8c63dc68b0b9af25a138083825de424546871f6f /apps/servers/octopus/supergit/src/repo.rs | |
parent | fcc89b1b5bcbcb00ce02cb461b186ef0337312e3 (diff) |
octopus: supergit: add interface to query specific store paths
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()) |