Ggit.DiffFile

Fields

None

Methods

  get_flags ()
  get_mode ()
  get_oid ()
  get_path ()
  get_size ()
  ref ()
  unref ()

Details

class Ggit.DiffFile

Represents a file in a Ggit.Diff.

get_flags()
Returns:the file’s flags.
Return type:Ggit.DiffFlag

Gets the #GgitDifflags for self.

get_mode()
Returns:the file’s mode.
Return type:int

Gets the mode for self.

get_oid()
Returns:the file’s Ggit.OId or None.
Return type:Ggit.OId or None

Gets the Ggit.OId for self.

get_path()
Returns:the file’s path, or None.
Return type:str or None

Gets the path of self or None if it is unknown.

get_size()
Returns:the file’s size.
Return type:int

Gets the size for self.

ref()
Returns:a Ggit.DiffFile or None.
Return type:Ggit.DiffFile 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.