OpenQuizz
Une application de gestion des contenus pédagogiques
FetchInfo Class Reference
Inheritance diagram for FetchInfo:
Collaboration diagram for FetchInfo:

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
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  ref,
  flags,
  note = '',
  old_commit = None,
  remote_ref_path = None 
)
Initialize a new instance

Member Function Documentation

◆ __str__()

def __str__ (   self)

◆ commit()

def commit (   self)
:return: Commit of our remote ref

◆ name()

def name (   self)
:return: Name of our remote ref

◆ refresh()

def refresh (   cls)
This gets called by the refresh function (see the top level
__init__).

Field Documentation

◆ ERROR

ERROR
static

◆ FAST_FORWARD

FAST_FORWARD
static

◆ flags

flags

◆ note

note

◆ old_commit

old_commit

◆ ref

ref

◆ remote_ref_path

remote_ref_path

The documentation for this class was generated from the following file: