Class Commit

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(repo: Repo, id: string, parents: Array<any>, tree: any, author: Actor, authoredDate: string, committer: Actor, committedDate: string, message: string, filechanges: any): Commit

Parameters

  • repo: Repo
  • id: string
  • parents: Array<any>
  • tree: any
  • author: Actor
  • authoredDate: string
  • committer: Actor
  • committedDate: string
  • message: string
  • filechanges: any

Returns

Commit

Properties

public _id_abbrev: any

public author: Actor

public authored_date: string

public committed_date: string

public committer: Actor

public filechanges: any

public id: string

public message: string

public parents: Array<any>

public repo: Repo

public sha: string

public short_message: string

public tree: any

Methods

public static count(repo: any, ref: any, callback: Function)

Parameters

  • repo: any
  • ref: any
  • callback: Function

public static diff(repo: any, a: any, callback: Function)

Parameters

  • repo: any
  • a: any
  • callback: Function

public static diff(repo: any, a: any, b: any, callback: Function)

Parameters

  • repo: any
  • a: any
  • b: any
  • callback: Function

public static diff(repo: any, a: any, b: any, paths: any, callback: Function)

Parameters

  • repo: any
  • a: any
  • b: any
  • paths: any
  • callback: Function

public diffs(callback: Function)

Parameters

  • callback: Function

public static find_all(repo: any, callback: Function)

Parameters

  • repo: any
  • callback: Function

public static find_all(repo: any, reference: any, callback: Function)

Parameters

  • repo: any
  • reference: any
  • callback: Function

public static find_all(repo: any, reference: any, options: any, callback: Function)

Parameters

  • repo: any
  • reference: any
  • options: any
  • callback: Function

public id_abbrev(callback: Function)

Parameters

  • callback: Function

public static list_from_string(repo: any, text: any): Commit[]

Parameters

  • repo: any
  • text: any

Returns

Commit[]

public load(callback: Function)

Parameters

  • callback: Function

public show(callback: Function)

Parameters

  • callback: Function

public toPatch(callback: Function)

Parameters

  • callback: Function