mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
Added body of Blame
This commit is contained in:
25
types/nodegit/blame.d.ts
vendored
25
types/nodegit/blame.d.ts
vendored
@@ -0,0 +1,25 @@
|
||||
import { Repository } from './repository';
|
||||
import { BlameOptions } from './blame-options';
|
||||
import {BlameHunk} from './blame-hunk';
|
||||
|
||||
export namespace Blame {
|
||||
enum FLAG {
|
||||
NORMAL = 0,
|
||||
TRACK_COPIES_SAME_FILE = 1,
|
||||
TRACK_COPIES_SAME_COMMIT_MOVES = 2,
|
||||
TRACK_COPIES_SAME_COMMIT_COPIES = 4,
|
||||
TRACK_COPIES_ANY_COMMIT_COPIES = 8,
|
||||
FIRST_PARENT = 16
|
||||
}
|
||||
}
|
||||
|
||||
export class Blame {
|
||||
static file(repo: Repository, path: string, options?: BlameOptions): Blame;
|
||||
static initOptions(opts: BlameOptions, version: number): number;
|
||||
|
||||
buffer(buffer: string, buffer_len: number): Promise<Blame>;
|
||||
free(): void;
|
||||
getHunkByIndex(index: number): BlameHunk;
|
||||
getHunkByLine(lineno: number): BlameHunk;
|
||||
getHunkCount(): number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user