mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-20 16:14:57 +08:00
Moved out DiffOptions
This commit is contained in:
18
types/nodegit/diff.d.ts
vendored
18
types/nodegit/diff.d.ts
vendored
@@ -5,6 +5,7 @@ import { Strarray } from './str-array';
|
||||
import { Index } from './index_';
|
||||
import { DiffDelta } from './diff-delta';
|
||||
import { DiffPerfdata } from './diff-perf-data';
|
||||
import { DiffOptions } from './diff-options';
|
||||
|
||||
export interface DiffFindOptions {
|
||||
version: number;
|
||||
@@ -16,21 +17,6 @@ export interface DiffFindOptions {
|
||||
renameLimit: number;
|
||||
}
|
||||
|
||||
export interface DiffOptions {
|
||||
version: number;
|
||||
flags: number;
|
||||
ignoreSubmodules: number;
|
||||
pathspec: Strarray;
|
||||
notifyCb: Function;
|
||||
notifyPayload: undefined;
|
||||
contextLines: number;
|
||||
interhunkLines: number;
|
||||
idAbbrev: number;
|
||||
maxSize: number;
|
||||
oldPrefix: string;
|
||||
newPrefix: string;
|
||||
}
|
||||
|
||||
export namespace Diff {
|
||||
enum DELTA {
|
||||
UNMODIFIED = 0,
|
||||
@@ -140,7 +126,7 @@ export namespace Diff {
|
||||
|
||||
export class Diff {
|
||||
static blobToBuffer(old_blob: Blob, oldAsPath: string,
|
||||
buffer: string, bufferAsPath: string, opts: DiffOptions, fileCb: Function, binaryCb: Function, hunkCb: Function, lineCb: Function): Promise<any>;
|
||||
buffer: string, bufferAsPath: string, opts: DiffOptions, fileCb: Function, binaryCb: Function, hunkCb: Function, lineCb: Function): Promise<any>;
|
||||
static indexToWorkdir(repo: Repository, index: Index, opts: DiffOptions): Promise<Diff>;
|
||||
static treeToIndex(repo: Repository, old_tree: Tree, index: Index, opts: DiffOptions): Promise<Diff>;
|
||||
static treeToTree(repo: Repository, old_tree: Tree, new_tree: Tree, opts: DiffOptions): Promise<Diff>;
|
||||
|
||||
Reference in New Issue
Block a user