From 7b17d3d55e646cb2a03d23de67b778bb85d5f731 Mon Sep 17 00:00:00 2001 From: Joe Date: Sun, 1 Mar 2026 14:29:06 -0600 Subject: [PATCH] Refactor untracked file collection logic in `collect_untracked_files` function - Updated the logic to skip processing directories that start with a dot (.) unless they are in the set of tracked directories. This change improves the efficiency of identifying untracked files by preventing unnecessary directory traversal. - Ensured that the `walk_dir` function is called only for relevant directories, enhancing the overall performance of the file collection process. These modifications aim to optimize the handling of untracked files within the git repository. --- src/git.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/git.rs b/src/git.rs index 386eeb35..4456507f 100644 --- a/src/git.rs +++ b/src/git.rs @@ -354,9 +354,10 @@ fn collect_untracked_files(repo: &gix::Repository, untracked: &mut HashSet