From 53dd0479d51d6e61174779149c7b7d3d1b0940ac Mon Sep 17 00:00:00 2001 From: mrbeanc Date: Sun, 31 Dec 2023 19:18:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=81=A2=E5=A4=8D=E8=A2=AB=E9=81=97=E6=BC=8F?= =?UTF-8?q?=E7=9A=84index.save()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 74c23de106165bd4a6fa2f3d6d7d0cfc07f03d5b) --- src/commands/restore.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/commands/restore.rs b/src/commands/restore.rs index 0b79292..3b76a52 100644 --- a/src/commands/restore.rs +++ b/src/commands/restore.rs @@ -143,6 +143,7 @@ pub fn restore_index(filter: Option<&Vec>, target_blobs: &Vec<(PathBuf, } } } + index.save(); } /** 对于工作区中的新文件,若已跟踪,则删除;若未跟踪,则保留