From 74c23de106165bd4a6fa2f3d6d7d0cfc07f03d5b 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 --- src/commands/restore.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/commands/restore.rs b/src/commands/restore.rs index f777cf6..f019e51 100644 --- a/src/commands/restore.rs +++ b/src/commands/restore.rs @@ -138,6 +138,7 @@ pub fn restore_index(filter: Option<&Vec>, target_blobs: &Vec<(PathBuf, } } } + index.save(); } /** 对于工作区中的新文件,若已跟踪,则删除;若未跟踪,则保留