From 781351e4d0024bedf0b09dd416ca9b0977b12b69 Mon Sep 17 00:00:00 2001 From: Martin von Zweigbergk Date: Fri, 30 Aug 2024 09:38:06 -0700 Subject: [PATCH] local_working_copy: delete obsolete comment about libgit2 We have not used libgit2 for gitignores since commit 88f7f473 (2021-05-13). --- lib/src/local_working_copy.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/src/local_working_copy.rs b/lib/src/local_working_copy.rs index a60fec77cc..a11cb632a5 100644 --- a/lib/src/local_working_copy.rs +++ b/lib/src/local_working_copy.rs @@ -579,11 +579,9 @@ impl TreeState { fn empty(store: Arc, working_copy_path: PathBuf, state_path: PathBuf) -> TreeState { let tree_id = store.empty_merged_tree_id(); - // Canonicalize the working copy path because "repo/." makes libgit2 think that - // everything should be ignored TreeState { store, - working_copy_path: working_copy_path.canonicalize().unwrap(), + working_copy_path, state_path, tree_id, file_states: FileStatesMap::new(),