mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-11 20:40:20 +00:00
Added more files
This commit is contained in:
Vendored
+21
@@ -0,0 +1,21 @@
|
||||
import { DiffFile } from './diff-file';
|
||||
|
||||
export class ConvenientPatch {
|
||||
oldFile(): DiffFile;
|
||||
newFile(): DiffFile;
|
||||
size(): number;
|
||||
hunks(): Promise<any[]>;
|
||||
status(): number;
|
||||
lineStats(): any;
|
||||
isUnmodified(): Boolean;
|
||||
isAdded(): Boolean;
|
||||
isDeleted(): Boolean;
|
||||
isModified(): Boolean;
|
||||
isRenamed(): Boolean;
|
||||
isCopied(): Boolean;
|
||||
isIgnored(): Boolean;
|
||||
isUntracked(): Boolean;
|
||||
isTypeChange(): Boolean;
|
||||
isUnreadable(): Boolean;
|
||||
isConflicted(): Boolean;
|
||||
}
|
||||
Vendored
+4
@@ -9,6 +9,7 @@ export { Buf } from './buf';
|
||||
export { CheckoutOptions } from './checkout-options';
|
||||
export { Commit } from './commit';
|
||||
export { Config } from './config';
|
||||
export { ConvenientPatch } from './convenient-patch';
|
||||
export { DiffDelta } from './diff-delta';
|
||||
export { DiffFile } from './diff-file';
|
||||
export { DiffPerfdata } from './diff-perf-data';
|
||||
@@ -34,9 +35,12 @@ export { Remote } from './remote';
|
||||
export { Repository } from './repository';
|
||||
export { Signature } from './signature';
|
||||
export { Strarray } from './str-array';
|
||||
export { SubmoduleUpdateOptions } from './submodule-update-options';
|
||||
export { Submodule } from './submodule';
|
||||
export { Tag } from './tag';
|
||||
export { Time } from './time';
|
||||
export { TransferProgress } from './transfer-progress';
|
||||
export { Transport } from './transport';
|
||||
export { Treebuilder } from './tree-builder';
|
||||
export { TreeEntry } from './tree-entry';
|
||||
export { Tree } from './tree';
|
||||
|
||||
Vendored
+1
-1
@@ -1,6 +1,6 @@
|
||||
export class Strarray {
|
||||
copy(src: Strarray): number;
|
||||
free(): void;
|
||||
strings: string;
|
||||
strings: string[];
|
||||
count: number;
|
||||
}
|
||||
|
||||
+9
@@ -0,0 +1,9 @@
|
||||
import { CheckoutOptions } from './checkout-options';
|
||||
import { FetchOptions } from './fetch-options';
|
||||
|
||||
export interface SubmoduleUpdateOptions {
|
||||
version: number;
|
||||
checkoutOpts: CheckoutOptions;
|
||||
fetchOpts: FetchOptions;
|
||||
cloneCheckoutStrategy: number;
|
||||
}
|
||||
Vendored
+81
@@ -0,0 +1,81 @@
|
||||
import { Repository } from './repository';
|
||||
import { Buf } from './buf';
|
||||
import { Oid } from './oid';
|
||||
import { SubmoduleUpdateOptions } from './submodule-update-options';
|
||||
|
||||
export namespace Submodule {
|
||||
enum IGNORE {
|
||||
UNSPECIFIED = -1,
|
||||
NONE = 1,
|
||||
UNTRACKED = 2,
|
||||
DIRTY = 3,
|
||||
ALL = 4
|
||||
}
|
||||
|
||||
enum RECURSE {
|
||||
NO = 0,
|
||||
YES = 1,
|
||||
ONDEMAND = 2
|
||||
}
|
||||
|
||||
enum STATUS {
|
||||
IN_HEAD = 1,
|
||||
IN_INDEX = 2,
|
||||
IN_CONFIG = 4,
|
||||
IN_WD = 8,
|
||||
INDEX_ADDED = 16,
|
||||
INDEX_DELETED = 32,
|
||||
INDEX_MODIFIED = 64,
|
||||
WD_UNINITIALIZED = 128,
|
||||
WD_ADDED = 256,
|
||||
WD_DELETED = 512,
|
||||
WD_MODIFIED = 1024,
|
||||
WD_INDEX_MODIFIED = 2048,
|
||||
WD_WD_MODIFIED = 4096,
|
||||
WD_UNTRACKED = 8192
|
||||
}
|
||||
|
||||
enum UPDATE {
|
||||
CHECKOUT = 1,
|
||||
REBASE = 2,
|
||||
MERGE = 3,
|
||||
NONE = 4,
|
||||
DEFAULT = 0
|
||||
}
|
||||
}
|
||||
|
||||
export class Submodule {
|
||||
static addSetup(repo: Repository, url: string, path: string, use_gitlink: number): Promise<Submodule>;
|
||||
static foreach(repo: Repository, callback: Function, payload: any): Promise<number>;
|
||||
static lookup(repo: Repository, name: string): Promise<Submodule>;
|
||||
static resolveUrl(repo: Repository, url: string): Promise<Buf>;
|
||||
static setBranch(repo: Repository, name: string, branch: string): number;
|
||||
static setFetchRecurseSubmodules(repo: Repository, name: string, fetch_recurse_submodules: number): number;
|
||||
static setIgnore(repo: Repository, name: string, ignore: number): Promise<number>;
|
||||
static setUpdate(repo: Repository, name: string, update: number): Promise<number>;
|
||||
static setUrl(repo: Repository, name: string, url: string): Promise<number>;
|
||||
static status(repo: Repository, name: string, ignore: number): Promise<number>;
|
||||
static updateInitOptions(opts: SubmoduleUpdateOptions, version: number): number;
|
||||
|
||||
addFinalize(): Promise<number>;
|
||||
addToIndex(write_index: number): Promise<number>;
|
||||
branch(): string;
|
||||
fetchRecurseSubmodules(): number;
|
||||
free(): void;
|
||||
headId(): Oid;
|
||||
ignore(): number;
|
||||
indexId(): Oid;
|
||||
init(overwrite: number): Promise<number>;
|
||||
location(): Promise<number>;
|
||||
name(): string;
|
||||
open(): Promise<Repository>;
|
||||
owner(): Repository;
|
||||
path(): string;
|
||||
reload(force: number): number;
|
||||
repoInit(use_gitlink: number): Promise<Repository>;
|
||||
sync(): Promise<number>;
|
||||
update(init: number, options: SubmoduleUpdateOptions): Promise<number>;
|
||||
updateStrategy(): number;
|
||||
url(): string;
|
||||
wdId(): Oid;
|
||||
}
|
||||
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
import { Remote } from './remote';
|
||||
import { Strarray } from './str-array';
|
||||
|
||||
export namespace Transport {
|
||||
enum FLAGS {
|
||||
NONE = 0
|
||||
}
|
||||
}
|
||||
|
||||
export class Transport {
|
||||
static sshWithPaths(owner: Remote, payload: Strarray): Promise<Transport>;
|
||||
static unregister(prefix: string): number;
|
||||
init(version: number): number;
|
||||
}
|
||||
@@ -22,6 +22,7 @@
|
||||
"checkout-options.d.ts",
|
||||
"commit.d.ts",
|
||||
"config.d.ts",
|
||||
"convenient-patch.d.ts",
|
||||
"diff-delta.d.ts",
|
||||
"diff-file.d.ts",
|
||||
"diff-perf-data.d.ts",
|
||||
@@ -48,9 +49,12 @@
|
||||
"repository.d.ts",
|
||||
"signature.d.ts",
|
||||
"str-array.d.ts",
|
||||
"submodule-update-options.d.ts",
|
||||
"submodule.d.ts",
|
||||
"tag.d.ts",
|
||||
"time.d.ts",
|
||||
"transfer-progress.d.ts",
|
||||
"transport.d.ts",
|
||||
"tree-builder.d.ts",
|
||||
"tree-entry.d.ts",
|
||||
"tree.d.ts"
|
||||
|
||||
Reference in New Issue
Block a user