Class GitIndex

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(repo: any): GitIndex

Parameters

  • repo: any

Returns

GitIndex

Properties

public current_tree: any

public repo: any

public tree: any

Methods

public add(filePath: any, data: any)

Parameters

  • filePath: any
  • data: any

public commit(message: any, callback: Function)

Parameters

  • message: any
  • callback: Function

public commit(message: any, parents: any, callback: Function)

Parameters

  • message: any
  • parents: any
  • callback: Function

public commit(message: any, parents: any, actor: any, callback: Function)

Parameters

  • message: any
  • parents: any
  • actor: any
  • callback: Function

public commit(message: any, parents: any, actor: any, lastTree: any, callback: Function)

Parameters

  • message: any
  • parents: any
  • actor: any
  • lastTree: any
  • callback: Function

public read_tree(tree: any, callback: Function)

Parameters

  • tree: any
  • callback: Function

public write_blob(data: any): any

Parameters

  • data: any

Returns

any

public write_tree(tree: any, callback: Function): any

Parameters

  • tree: any
  • callback: Function

Returns

any

public write_tree(tree: any, nowTree: any, callback: Function): any

Parameters

  • tree: any
  • nowTree: any
  • callback: Function

Returns

any