Class Repository

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(gitDirectory: any, options?: any): Repository

Parameters

  • gitDirectory: any
  • options?: any optional

Returns

Repository

Properties

public already_searched: any

public git_directory: any

public loose: any

public options: any

public packs: any

Methods

public cat_file(sha: any): any

Parameters

  • sha: any

Returns

any

public cat_file_size(sha: any): number

Parameters

  • sha: any

Returns

number

public cat_file_type(sha: any): any

Parameters

  • sha: any

Returns

any

public files_changed(treeSha1: any, treeSha2: any, pathLimiter: any): boolean

Parameters

  • treeSha1: any
  • treeSha2: any
  • pathLimiter: any

Returns

boolean

public get_object_by_sha1(sha1: string): any

Parameters

  • sha1: string

Returns

any

public get_raw_tree(sha: any, recursive: any): any

Parameters

  • sha: any
  • recursive: any

Returns

any

public get_raw_trees(sha: any, path: any): string

Parameters

  • sha: any
  • path: any

Returns

string

public get_subtree(commitSha: any, path: any, callback: Function)

Parameters

  • commitSha: any
  • path: any
  • callback: Function

public in_loose(shaHex: any, callback: Function)

Parameters

  • shaHex: any
  • callback: Function

public in_packs(shaHex: any, callback: Function)

Parameters

  • shaHex: any
  • callback: Function

public static init(dir: any, bare: any, callback: Function)

Parameters

  • dir: any
  • bare: any
  • callback: Function

public list_tree(sha: any): any

Parameters

  • sha: any

Returns

any

public ls_tree(sha: any, paths: any, recursive: any): any

Parameters

  • sha: any
  • paths: any
  • recursive: any

Returns

any

public ls_tree_path(sha: any, path: any, append: any): any

Parameters

  • sha: any
  • path: any
  • append: any

Returns

any

public object_exists(sha1: any, callback: Function)

Parameters

  • sha1: any
  • callback: Function

public put_raw_object(content: any, type: any, callback: Function): any

Parameters

  • content: any
  • type: any
  • callback: Function

Returns

any

public quick_diff(tree1: any, tree2: any, path: any, recurse: any): Array<any>

Parameters

  • tree1: any
  • tree2: any
  • path: any
  • recurse: any

Returns

Array<any>

public rev_list(sha: any, options: any, callback: Function)

Parameters

  • sha: any
  • options: any
  • callback: Function