From a8ddf69c1268d2af6eff9179218ab61bcda1f6e5 Mon Sep 17 00:00:00 2001 From: Yobmod Date: Wed, 30 Jun 2021 22:47:45 +0100 Subject: Type Traversable/list_traverse() better, make IterablleObj a protocol --- git/remote.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'git/remote.py') diff --git a/git/remote.py b/git/remote.py index a036446e..0ef54ea7 100644 --- a/git/remote.py +++ b/git/remote.py @@ -128,6 +128,7 @@ class PushInfo(IterableObj, object): info.summary # summary line providing human readable english text about the push """ __slots__ = ('local_ref', 'remote_ref_string', 'flags', '_old_commit_sha', '_remote', 'summary') + _id_attribute_ = 'pushinfo' NEW_TAG, NEW_HEAD, NO_MATCH, REJECTED, REMOTE_REJECTED, REMOTE_FAILURE, DELETED, \ FORCED_UPDATE, FAST_FORWARD, UP_TO_DATE, ERROR = [1 << x for x in range(11)] @@ -242,6 +243,7 @@ class FetchInfo(IterableObj, object): info.remote_ref_path # The path from which we fetched on the remote. It's the remote's version of our info.ref """ __slots__ = ('ref', 'old_commit', 'flags', 'note', 'remote_ref_path') + _id_attribute_ = 'fetchinfo' NEW_TAG, NEW_HEAD, HEAD_UPTODATE, TAG_UPDATE, REJECTED, FORCED_UPDATE, \ FAST_FORWARD, ERROR = [1 << x for x in range(8)] -- cgit v1.2.1