Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: integrate .gitignore to refine file processing in generate_over all_structure. #16

Merged
merged 1 commit into from
Dec 21, 2023
Merged

fix: integrate .gitignore to refine file processing in generate_over all_structure. #16

merged 1 commit into from
Dec 21, 2023

Conversation

Umpire2018
Copy link
Collaborator

@Umpire2018 Umpire2018 commented Dec 20, 2023

  • I've implemented a solution where we use the contents of .gitignore in our codebase to establish a list of patterns to ignore. This allows us to specifically target and process files within the desired scope, avoiding those that are specified in .gitignore. This approach should help in efficiently narrowing down the range of files generate_overall_structure processes, aligning it more closely with our project's relevant files.

  • This change treats .gitignore as specifying two types of ignore patterns: one ending with / as the folder mode, and the other as the file mode. In the check_files_and_folders method, it first matches the folder mode to speed up processing.

  • fix generate_overall_structure processed an overly broad range of files. #14 .

Results

only those relevant files.

image

My codebase structure.
image

AI doc file.
image

@Umpire2018 Umpire2018 merged commit a883374 into OpenBMB:main Dec 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

generate_overall_structure processed an overly broad range of files.
1 participant