Class Git

Index

Constructor methods

Methods

Constructor methods

constructor(gitDirectory: any): Git

Parameters

  • gitDirectory: any

Returns

Git

Methods

public add(args?: Array<any>)

Parameters

  • args?: Array<any> optional

public add(options: any, args?: Array<any>)

Parameters

  • options: any
  • args?: Array<any> optional

public blame(callback: Function)

Parameters

  • callback: Function

public blame(options: any, callback: Function)

Parameters

  • options: any
  • callback: Function

public blame_tree(commit: any, callback: Function)

Parameters

  • commit: any
  • callback: Function

public blame_tree(commit: any, path: any, callback: Function)

Parameters

  • commit: any
  • path: any
  • callback: Function

public call_git(prefix: string, command: any, postfix: string, options: any, args: any, callback: (error: any, result: string) => void)

Parameters

  • prefix: string
  • command: any
  • postfix: string
  • options: any
  • args: any
  • callback: (error: any, result: string) => void

public cat_file(type: any, ref: any, callback: Function)

Parameters

  • type: any
  • ref: any
  • callback: Function

public clone(options: any, originalPath: any, targetPath: any, callback: Function)

Parameters

  • options: any
  • originalPath: any
  • targetPath: any
  • callback: Function

public commit(args?: Array<any>)

Parameters

  • args?: Array<any> optional

public commit(options: any, args?: Array<any>)

Parameters

  • options: any
  • args?: Array<any> optional

public commit_from_sha(id: string): any

Parameters

  • id: string

Returns

any

public config(args?: Array<any>)

Parameters

  • args?: Array<any> optional

public config(options: any, args?: Array<any>)

Parameters

  • options: any
  • args?: Array<any> optional

public diff(commit1: any, commit2: any, callback: (error: any, patch: string) => void)

Parameters

  • commit1: any
  • commit2: any
  • callback: (error: any, patch: string) => void

public diff(commit1: any, commit2: any, options: any, callback: (error: any, patch: string) => void)

Parameters

  • commit1: any
  • commit2: any
  • options: any
  • callback: (error: any, patch: string) => void

public diff_files(args?: Array<any>)

Parameters

  • args?: Array<any> optional

public diff_files(options: any, args?: Array<any>)

Parameters

  • options: any
  • args?: Array<any> optional

public diff_index(args?: Array<any>)

Parameters

  • args?: Array<any> optional

public diff_index(options: any, args?: Array<any>)

Parameters

  • options: any
  • args?: Array<any> optional

public file_size(ref: any, callback: Function)

Parameters

  • ref: any
  • callback: Function

public file_type(args?: Array<any>)

Parameters

  • args?: Array<any> optional

public file_type(options: any, args?: Array<any>)

Parameters

  • options: any
  • args?: Array<any> optional

public format_patch(options: any, reference: any, callback: Function)

Parameters

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

public fs_exist(path: any, callback: Function)

Parameters

  • path: any
  • callback: Function

public fs_mkdir(dir: any, callback: Function)

Parameters

  • dir: any
  • callback: Function

public fs_read(gitDirectory: string, file: string, callback: (err: any, data: any) => void)

Parameters

  • gitDirectory: string
  • file: string
  • callback: (err: any, data: any) => void

public fs_write(file: any, content: any, callback: Function)

Parameters

  • file: any
  • content: any
  • callback: Function

public git(functionName: any, options: any, args?: Array<any>)

Parameters

  • functionName: any
  • options: any
  • args?: Array<any> optional

public init(options: any, callback: Function)

Parameters

  • options: any
  • callback: Function

public log(commit: any, path: any, options: any, callback: Function)

Parameters

  • commit: any
  • path: any
  • options: any
  • callback: Function

public looking_for(commit: any, callback: Function)

Parameters

  • commit: any
  • callback: Function

public looking_for(commit: any, path: any, callback: Function)

Parameters

  • commit: any
  • path: any
  • callback: Function

public ls_files(args?: Array<any>)

Parameters

  • args?: Array<any> optional

public ls_files(options: any, args?: Array<any>)

Parameters

  • options: any
  • args?: Array<any> optional

public ls_tree(treeish: any, callback: Function)

Parameters

  • treeish: any
  • callback: Function

public ls_tree(treeish: any, paths: Array<any>, callback: Function)

Parameters

  • treeish: any
  • paths: Array<any>
  • callback: Function

public ls_tree(treeish: any, paths: Array<any>, options: any, callback: Function)

Parameters

  • treeish: any
  • paths: Array<any>
  • options: any
  • callback: Function

public put_raw_object(args?: Array<any>)

Parameters

  • args?: Array<any> optional

public put_raw_object(options: any, args?: Array<any>)

Parameters

  • options: any
  • args?: Array<any> optional

public refs(options: any, prefix: string, callback: (err: any, data: string) => void)

Parameters

  • options: any
  • prefix: string
  • callback: (err: any, data: string) => void

public remove(args?: Array<any>)

Parameters

  • args?: Array<any> optional

public remove(options: any, args?: Array<any>)

Parameters

  • options: any
  • args?: Array<any> optional

public rev_list(callback: Function)

Parameters

  • callback: Function

public rev_list(options: any, callback: Function)

Parameters

  • options: any
  • callback: Function

public rev_list(options: any, reference: string, callback: Function)

Parameters

  • options: any
  • reference: string
  • callback: Function

public rev_parse(options: any, str: string, callback: Function)

Parameters

  • options: any
  • str: string
  • callback: Function

public rev_parse(options: any, str: string, level: number, callback: Function)

Parameters

  • options: any
  • str: string
  • level: number
  • callback: Function

public select_existing_objects(objectIds: Array<any>, callback: Function)

Parameters

  • objectIds: Array<any>
  • callback: Function

public transform_options(options: any): Array<string>

Parameters

  • options: any

Returns

Array<string>