|
OpenQuizz
Une application de gestion des contenus pédagogiques
|


Public Member Functions | |
| def | refresh (cls) |
| def | __init__ (self, ref, flags, note='', old_commit=None, remote_ref_path=None) |
| def | __str__ (self) |
| def | name (self) |
| def | commit (self) |
Data Fields | |
| ref | |
| flags | |
| note | |
| old_commit | |
| remote_ref_path | |
Static Public Attributes | |
| FAST_FORWARD | |
| ERROR | |
Carries information about the results of a fetch operation of a single head::
info = remote.fetch()[0]
info.ref # Symbolic Reference or RemoteReference to the changed
# remote head or FETCH_HEAD
info.flags # additional flags to be & with enumeration members,
# i.e. info.flags & info.REJECTED
# is 0 if ref is SymbolicReference
info.note # additional notes given by git-fetch intended for the user
info.old_commit # if info.flags & info.FORCED_UPDATE|info.FAST_FORWARD,
# field is set to the previous location of ref, otherwise None
info.remote_ref_path # The path from which we fetched on the remote. It's the remote's version of our info.ref
| def __init__ | ( | self, | |
| ref, | |||
| flags, | |||
note = '', |
|||
old_commit = None, |
|||
remote_ref_path = None |
|||
| ) |
Initialize a new instance
| def __str__ | ( | self | ) |
| def commit | ( | self | ) |
:return: Commit of our remote ref
| def name | ( | self | ) |
:return: Name of our remote ref
| def refresh | ( | cls | ) |
This gets called by the refresh function (see the top level __init__).
|
static |
|
static |
| flags |
| note |
| old_commit |
| ref |
| remote_ref_path |