Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
fetch: inpsect for Cache
Fintan Halpenny committed 2 years ago
commit 559f84d9f1739ac7d7a98a1e7431d431639648b7
parent 0640ea59ec5e4cd96b26ac2757f817efdcc26e1d
2 files changed +6 -1
modified radicle-fetch/src/git/mem.rs
@@ -66,7 +66,7 @@ impl Refdb {
    }

    #[allow(dead_code)]
-
    pub(crate) fn print(&self) {
+
    pub(crate) fn inspect(&self) {
        if self.0.is_empty() {
            println!("Refdb is empty!");
        } else {
modified radicle-fetch/src/state.rs
@@ -505,6 +505,11 @@ impl<'a, S> Cached<'a, S> {
            Some(tip) => SignedRefsAt::load_at(*tip, *remote, &self.handle.repo).map(Some),
        }
    }
+

+
    #[allow(dead_code)]
+
    pub(crate) fn inspect(&self) {
+
        self.state.refs.inspect()
+
    }
}

impl<'a, S> RemoteRepository for Cached<'a, S> {