Skip to content

Commit

Permalink
local_working_copy: delete obsolete comment about libgit2
Browse files Browse the repository at this point in the history
We have not used libgit2 for gitignores since commit 88f7f47
(2021-05-13).
  • Loading branch information
martinvonz committed Sep 1, 2024
1 parent 8e500c0 commit 781351e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/src/local_working_copy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -579,11 +579,9 @@ impl TreeState {

fn empty(store: Arc<Store>, 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(),
Expand Down

0 comments on commit 781351e

Please sign in to comment.