diff options
author | Yobmod <yobmod@gmail.com> | 2021-06-30 22:47:45 +0100 |
---|---|---|
committer | Yobmod <yobmod@gmail.com> | 2021-06-30 22:47:45 +0100 |
commit | a8ddf69c1268d2af6eff9179218ab61bcda1f6e5 (patch) | |
tree | 4305af24d08bf9b9ea74e436dc92a1599e4bb9dc /git/remote.py | |
parent | 237966a20a61237a475135ed8a13b90f65dcb2ca (diff) | |
download | gitpython-a8ddf69c1268d2af6eff9179218ab61bcda1f6e5.tar.gz |
Type Traversable/list_traverse() better, make IterablleObj a protocol
Diffstat (limited to 'git/remote.py')
-rw-r--r-- | git/remote.py | 2 |
1 files changed, 2 insertions, 0 deletions
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)] |