From d7214eccb3cac52ce3f8d9ca18f218671821eeee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20R=C3=BC=C3=9Fler?= Date: Tue, 6 Oct 2026 09:08:04 +0200 Subject: [PATCH] Enable `unstable-sha256` for `git2` (#3001) --- asyncgit/Cargo.toml | 2 +- src/queue.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/asyncgit/Cargo.toml b/asyncgit/Cargo.toml index 99e55b6d..4d32071b 100644 --- a/asyncgit/Cargo.toml +++ b/asyncgit/Cargo.toml @@ -17,7 +17,7 @@ crossbeam-channel = "0.5" dirs = "6.0" easy-cast = "0.5" fuzzy-matcher = "0.3" -git2 = { version = "0.21", features = ["https", "ssh"] } +git2 = { version = "0.21", features = ["https", "ssh", "unstable-sha256"] } git2-hooks = { path = "../git2-hooks", version = "0.7" } gix = { version = "0.84.0", default-features = false, features = ["mailmap", "max-performance", "revision", "sha1", "sha256", "status"] } log = "0.4" diff --git a/src/queue.rs b/src/queue.rs index 5413841e..bbf873ad 100644 --- a/src/queue.rs +++ b/src/queue.rs @@ -21,11 +21,11 @@ use std::{ bitflags! { /// flags defining what part of the app need to update pub struct NeedsUpdate: u32 { - /// `app::update` + /// [`crate::App::update`] const ALL = 0b001; - /// diff may have changed (`app::update_diff`) + /// diff may have changed (e. g. [`crate::popups::InspectCommitPopup::update_diff`]) const DIFF = 0b010; - /// commands might need updating (`app::update_commands`) + /// commands might need updating ([`crate::App::update_commands`]) const COMMANDS = 0b100; /// branches have changed const BRANCHES = 0b1000;