refactor git cache

This commit is contained in:
2026-09-13 21:13:13 +07:00
parent 2414095725
commit 1e19fb6b17
9 changed files with 44 additions and 40 deletions
+3 -3
View File
@@ -26,8 +26,8 @@ use nostr::prelude::{RelayUrl, ToBech32, Url};
use signed_core::{Announcement, RepoAddr, RepoStatus};
use signed_git::FileCommit;
use signed_state::{
Backend, CheckoutStatus, CheckoutsStore, GitStore, LocalReposStore, ProfileStore,
RepoListStore, RepoStore, pr_proposes_checkout,
Backend, CheckoutStatus, CheckoutsStore, LocalReposStore, ProfileStore, RepoListStore,
RepoStore, git_cache, pr_proposes_checkout,
};
use signed_ui::{
CountBadge, DropdownButton, PixelAvatar, UserAvatar, copy_row, menu_copy_row, middle_truncate,
@@ -343,7 +343,7 @@ impl RepoDetailView {
self.repo_started = true;
let cache = GitStore::global(cx).cache().clone();
let cache = git_cache();
let addr = announcement.addr();
let clone_urls: Vec<Url> = announcement.clone.clone();