fetch progress information is available but dropped · gitpython-developers/GitPython · Discussion #1466 · GitHub | Latest TMZ Celebrity News & Gossip | Watch TMZ Live
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
Modern versions of git will return progress information. In debugging what goes on here, I found that all of the information was being dropped by _parse_line. For others who run into this, I was able to return branch update information to the user by adding the following:
classSeeFetchProgress(git.remote.RemoteProgress):
# the implementation of RemoteProgress currently doesn't match fetch lines, so catch them when dropped.defline_dropped(self, line: str):
ifre.match('remote: ', line):
returnprint(line)
Indeed, the mechanism is meant to be used to obtain additional information, with the default implementation being somewhat limited.
This discussion could be used to figure out if the default implementation should be improved, if there should be better docs, or anything else related to improving the situation.
As shown by my change, I believe that the lines other than remote: can be useful and necessary... in fact, we wouldn't be able to use this module without the ability to display those lines as they are necessary and critical output to understand the actions taken (or not)
So yes, I firmly believe that this would be much more useful if one could retrieve these lines, hopefully from the API as a String and not by overloading a function.
This discussion was converted from issue #1465 on July 16, 2022 02:26.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.
Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.
🎥 Watch TMZ Live
TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.
Uh oh!
There was an error while loading. Please reload this page.
-
Modern versions of git will return progress information. In debugging what goes on here, I found that all of the information was being dropped by _parse_line. For others who run into this, I was able to return branch update information to the user by adding the following:
Beta Was this translation helpful? Give feedback.
All reactions