summaryrefslogtreecommitdiffstats
path: root/src/tabs
diff options
context:
space:
mode:
authorextrawurst <mail@rusticorn.com>2022-10-19 14:03:04 +0200
committerextrawurst <mail@rusticorn.com>2022-10-19 14:03:04 +0200
commitac67e53b126ed4358d3f387fb35e9e30c1c6bfdf (patch)
tree91440fcd9df85dc594aac1921210b63473cc130e /src/tabs
parent6dfe5ea62afe6eb0a7cca30104cacf224ced827b (diff)
dup current branch name in revlog
Diffstat (limited to 'src/tabs')
-rw-r--r--src/tabs/revlog.rs7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/tabs/revlog.rs b/src/tabs/revlog.rs
index 5443bc64..f7cfc22a 100644
--- a/src/tabs/revlog.rs
+++ b/src/tabs/revlog.rs
@@ -12,7 +12,6 @@ use crate::{
};
use anyhow::Result;
use asyncgit::{
- cached,
sync::{self, get_branches_info, CommitId, RepoPathRef},
AsyncGitNotification, AsyncLog, AsyncTags, CommitFilesParams,
FetchStatus,
@@ -38,7 +37,6 @@ pub struct Revlog {
git_tags: AsyncTags,
queue: Queue,
visible: bool,
- branch_name: cached::BranchName,
key_config: SharedKeyConfig,
}
@@ -73,7 +71,6 @@ impl Revlog {
),
git_tags: AsyncTags::new(repo.borrow().clone(), sender),
visible: false,
- branch_name: cached::BranchName::new(repo.clone()),
key_config,
}
}
@@ -103,10 +100,6 @@ impl Revlog {
self.git_tags.request(Duration::from_secs(3), false)?;
- self.list.set_branch(
- self.branch_name.lookup().map(Some).unwrap_or(None),
- );
-
self.list.set_branches(get_branches_info(
&self.repo.borrow(),
true,