aboutsummaryrefslogtreecommitdiff
path: root/apps/servers/octopus/supergit/src/repo.rs
diff options
context:
space:
mode:
authorMx Kookie <kookie@spacekookie.de>2021-01-06 23:04:53 +0100
committerMx Kookie <kookie@spacekookie.de>2021-01-06 23:04:53 +0100
commitc8f3364c742c3528ee0709a44e82643fee2f8afe (patch)
tree8c63dc68b0b9af25a138083825de424546871f6f /apps/servers/octopus/supergit/src/repo.rs
parentfcc89b1b5bcbcb00ce02cb461b186ef0337312e3 (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.rs4
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())