refactor: rename clone to clone_repo and consolidate schema & utility modules #237
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.
This PR reorganizes the Gitingest codebase to improve clarity and maintainability:
Function Renaming:
clone
is renamed toclone_repo
for more explicit naming._check_repo_exists
,_run_command
, andcheck_git_installed
are moved and renamed ingitingest.utils.git_utils
.Schema Consolidation:
FileSystemNode
,FileSystemNodeType
,FileSystemStats
,CloneConfig
,IngestionQuery
) are extracted into a dedicatedgitingest.schemas
package.Utility Cleanup:
_get_encoding_list
andis_textfile
now reside ingitingest.utils.file_utils
._get_status_code
function.exceptions.py
intogitingest.utils.exceptions
.References & Tests:
These updates streamline the codebase and reduce duplication, making the package easier to extend and maintain.