-
Notifications
You must be signed in to change notification settings - Fork 361
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
Feature Request: Allow local repositories #30
Comments
Yes! I'm planning to add this I imagine:
If anyone has any idea while this is still in the brainstorming phase |
How about adding checkboxes "local directory" and "remote repo"? Note that local directory doesn't have to be a git repo. |
Related to cyclotruc#30 Add support for local directories in the UI and backend. * **UI Changes:** - Add a file input field for selecting local directories in `src/templates/components/github_form.jinja`. - Add checkboxes to select between "local directory" and "remote repo" options in `src/templates/components/github_form.jinja`. * **Backend Changes:** - Update `ingest` function in `src/gitingest/ingest.py` to handle local directories by checking if the input is a directory path. - Modify `parse_query` function in `src/gitingest/parse_query.py` to parse local directory paths and set appropriate query parameters. - Ensure the `scan_directory` function in `src/gitingest/ingest_from_query.py` includes safety limits such as `MAX_DIRECTORY_DEPTH`, `MAX_FILES`, and `MAX_TOTAL_SIZE_BYTES` to prevent excessive processing. * **Documentation:** - Update `README.md` to include instructions for using local directories with the CLI and Python package. * **User Feedback:** - Provide feedback to the user if the directory exceeds the safety limits in `src/templates/components/result.jinja`.
In addition to the GitHub Public repo URL, add the support to select the local repositories folder from the UI.
As the server side reads the repo currently, it is probably easier to read if the repo is already on the disk.
The text was updated successfully, but these errors were encountered: