Ggit.RefSpec

Fields

None

Methods

get_destination ()

get_source ()

is_forced ()

ref ()

unref ()

Details

class Ggit.RefSpec

Reprensents a git reference specification.

get_destination()
Returns:

the refspec’s destination or None.

Return type:

str or None

Gets the self's destination.

get_source()
Returns:

the refspec’s source or None.

Return type:

str or None

Gets the self's source.

is_forced()
Returns:

if updating is done forcefully.

Return type:

bool

Whether updating is done forcefully.

ref()
Returns:

a Ggit.RefSpec or None.

Return type:

Ggit.RefSpec or None

Atomically increments the reference count of self by one. This function is MT-safe and may be called from any thread.

unref()

Atomically decrements the reference count of self by one. If the reference count drops to 0, self is freed.