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

Use GitPython library #32

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Use GitPython library #32

wants to merge 1 commit into from

Conversation

hadishakir
Copy link

  • to select only tracked files
  • works with .gitignore

- to select only tracked files
- works with .gitignore
@stuartleach
Copy link

This worked great for me. Thanks!

@shanecp
Copy link

shanecp commented Mar 29, 2023

I've checked the above commit. This creates a dependency on Git repos. It throws an exception as git.exc.InvalidGitRepositoryError, when the code is run on a project without an initiated repo.

I guess it would be good to have the ability to run code on a non-git repo as well (the current behaviour). It might be worthwhile to make the code detect if it's a git repo or not automatically, or have a flag to override it.

Another use case is the ability to run it on sub-folders with limited files (to get around the current token limit)

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.

3 participants