-
-
Notifications
You must be signed in to change notification settings - Fork 894
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
Make use of xargs for Repo().ignored function #1790
Labels
Comments
Thanks for reporting! I think this could be solved by providing the paths to Reference``` ❯ git check-ignore -h usage: git check-ignore [] ... or: git check-ignore [] --stdin
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In my use case, I wish to utilize the
Repo
class functionignored()
to filter out a potentially larger list of files. The issue is that somethings this list of files is way too large. For example:The command line max argument size is defined as noted here:
However, my code is going beyond that maximum because the git repos I have chosen have lots of ignorable files.
I get this error:
If I was using the command line, I'd take advantage of xargs to split the argument size below the max and repeatedly call
git check-ignore
. For reference: https://stackoverflow.com/questions/2381241/what-is-the-subprocess-popen-max-length-of-the-args-parameterWhile I can do the splitting of the list in my Python code, I believe it makes more sense that the library designed to call command lines does it itself. And maybe it doesn't make sense for all commands, be do believe
xargs
would work well forgit check-ignore
The text was updated successfully, but these errors were encountered: