aboutsummaryrefslogtreecommitdiff
path: root/apps/servers/octopus/supergit/src/commit.rs
diff options
context:
space:
mode:
Diffstat (limited to 'apps/servers/octopus/supergit/src/commit.rs')
-rw-r--r--apps/servers/octopus/supergit/src/commit.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/servers/octopus/supergit/src/commit.rs b/apps/servers/octopus/supergit/src/commit.rs
index 99c4dbba6fce..58b57ce22f73 100644
--- a/apps/servers/octopus/supergit/src/commit.rs
+++ b/apps/servers/octopus/supergit/src/commit.rs
@@ -1,4 +1,4 @@
-use crate::{Diff, FileTree, HashId};
+use crate::{files::FileTree, Diff, HashId};
use git2::Repository;
use std::sync::Arc;
@@ -67,8 +67,8 @@ impl Commit {
}
/// Get the file tree for this commit
- pub fn get_tree(&self) -> Arc<FileTree> {
- FileTree::new(&self.repo, self.id.clone())
+ pub fn tree(&self) -> FileTree {
+ FileTree::new(Arc::clone(&self.repo), self.id.clone())
}
/// Get the list of paths in the repository touched by this commit