You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Heremax_chunk_size will usually contain (depending on the platform) 8192, which is a very high value for a chunk and won't trigger a .write (keep reading) until quite some output is printed to stdout. I propose to make that value configurable (maybe via an argument).
This will cause my callback to parse the content of the buffer every time .write is called, which is very useful if I want to provide progress updates while running a long git command (like filter-branch).
Possible solution:
Make it possible to call raw commands with one extra argument:
Here
max_chunk_size
will usually contain (depending on the platform)8192
, which is a very high value for a chunk and won't trigger a.write
(keep reading) until quite some output is printed to stdout. I propose to make that value configurable (maybe via an argument).My use case:
I have the following class:
And I use it like this:
This will cause my callback to parse the content of the buffer every time
.write
is called, which is very useful if I want to provide progress updates while running a long git command (likefilter-branch
).Possible solution:
Make it possible to call raw commands with one extra argument:
The text was updated successfully, but these errors were encountered: