Fix the issue where default input files may include non-existing files #99
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #97
Copilot Generated Summary
This pull request primarily focuses on simplifying the file collection process in the
src/files.rs
file and adding a new dependency in theCargo.toml
file. The most significant changes include the addition of theignore
crate to the project dependencies, the use of theWalk
struct from theignore
crate to collect files, and the removal of several functions related to file collection that are no longer necessary.Dependency addition:
Cargo.toml
: Addedignore
crate version "0.4.22" to the project dependencies. This crate provides theWalk
struct used for file collection.File collection simplification:
src/files.rs
: Imported theWalk
struct from theignore
crate.src/files.rs
: Simplified thecollect_default_target_files
function by using theWalk
struct to collect files instead of the previous method, which involved checking if the current directory is a git repository and collecting files differently based on that. Removed thecollect_files_with_git
andcollect_files_without_git
functions as they are no longer necessary.src/files.rs
: Removed theis_git_repository
function as it is no longer needed due to the changes in the file collection process.