Ggit.DiffDelta

Fields

None

Methods

get_flags ()

get_new_file ()

get_old_file ()

get_similarity ()

get_status ()

ref ()

unref ()

Details

class Ggit.DiffDelta

Represents the changes done to one file.

get_flags()
Returns:

the delta flags

Return type:

Ggit.DiffFlag

Gets flags for self.

get_new_file()
Returns:

the delta’s new file or None.

Return type:

Ggit.DiffFile or None

Gets the new file for self.

get_old_file()
Returns:

the delta’s old file or None.

Return type:

Ggit.DiffFile or None

Gets the old file for self.

get_similarity()
Returns:

the delta’s similarity.

Return type:

int

Gets the similarity between self files.

get_status()
Returns:

the delta’s status.

Return type:

Ggit.DeltaType

Gets the Ggit.DeltaType for self.

ref()
Returns:

a Ggit.DiffDelta or None.

Return type:

Ggit.DiffDelta 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.