|
|
@ -5,7 +5,7 @@ |
|
|
|
|
|
|
|
import { Disposable, Event, ProviderResult, Uri } from 'vscode'; |
|
|
|
|
|
|
|
export { ProviderResult } from 'vscode'; |
|
|
|
import { GitErrorCodes, RefType, Status } from '../@types/vscode.git.enums'; |
|
|
|
|
|
|
|
export interface Git { |
|
|
|
readonly path: string; |
|
|
@ -15,12 +15,6 @@ export interface InputBox { |
|
|
|
value: string; |
|
|
|
} |
|
|
|
|
|
|
|
export const enum RefType { |
|
|
|
Head, |
|
|
|
RemoteHead, |
|
|
|
Tag, |
|
|
|
} |
|
|
|
|
|
|
|
export interface Ref { |
|
|
|
readonly type: RefType; |
|
|
|
readonly name?: string; |
|
|
@ -62,28 +56,6 @@ export interface Remote { |
|
|
|
readonly isReadOnly: boolean; |
|
|
|
} |
|
|
|
|
|
|
|
export const enum Status { |
|
|
|
INDEX_MODIFIED, |
|
|
|
INDEX_ADDED, |
|
|
|
INDEX_DELETED, |
|
|
|
INDEX_RENAMED, |
|
|
|
INDEX_COPIED, |
|
|
|
|
|
|
|
MODIFIED, |
|
|
|
DELETED, |
|
|
|
UNTRACKED, |
|
|
|
IGNORED, |
|
|
|
INTENT_TO_ADD, |
|
|
|
|
|
|
|
ADDED_BY_US, |
|
|
|
ADDED_BY_THEM, |
|
|
|
DELETED_BY_US, |
|
|
|
DELETED_BY_THEM, |
|
|
|
BOTH_ADDED, |
|
|
|
BOTH_DELETED, |
|
|
|
BOTH_MODIFIED, |
|
|
|
} |
|
|
|
|
|
|
|
export interface Change { |
|
|
|
/** |
|
|
|
* Returns either `originalUri` or `renameUri`, depending |
|
|
@ -267,41 +239,3 @@ export interface GitExtension { |
|
|
|
*/ |
|
|
|
getAPI(version: 1): API; |
|
|
|
} |
|
|
|
|
|
|
|
export const enum GitErrorCodes { |
|
|
|
BadConfigFile = 'BadConfigFile', |
|
|
|
AuthenticationFailed = 'AuthenticationFailed', |
|
|
|
NoUserNameConfigured = 'NoUserNameConfigured', |
|
|
|
NoUserEmailConfigured = 'NoUserEmailConfigured', |
|
|
|
NoRemoteRepositorySpecified = 'NoRemoteRepositorySpecified', |
|
|
|
NotAGitRepository = 'NotAGitRepository', |
|
|
|
NotAtRepositoryRoot = 'NotAtRepositoryRoot', |
|
|
|
Conflict = 'Conflict', |
|
|
|
StashConflict = 'StashConflict', |
|
|
|
UnmergedChanges = 'UnmergedChanges', |
|
|
|
PushRejected = 'PushRejected', |
|
|
|
RemoteConnectionError = 'RemoteConnectionError', |
|
|
|
DirtyWorkTree = 'DirtyWorkTree', |
|
|
|
CantOpenResource = 'CantOpenResource', |
|
|
|
GitNotFound = 'GitNotFound', |
|
|
|
CantCreatePipe = 'CantCreatePipe', |
|
|
|
PermissionDenied = 'PermissionDenied', |
|
|
|
CantAccessRemote = 'CantAccessRemote', |
|
|
|
RepositoryNotFound = 'RepositoryNotFound', |
|
|
|
RepositoryIsLocked = 'RepositoryIsLocked', |
|
|
|
BranchNotFullyMerged = 'BranchNotFullyMerged', |
|
|
|
NoRemoteReference = 'NoRemoteReference', |
|
|
|
InvalidBranchName = 'InvalidBranchName', |
|
|
|
BranchAlreadyExists = 'BranchAlreadyExists', |
|
|
|
NoLocalChanges = 'NoLocalChanges', |
|
|
|
NoStashFound = 'NoStashFound', |
|
|
|
LocalChangesOverwritten = 'LocalChangesOverwritten', |
|
|
|
NoUpstreamBranch = 'NoUpstreamBranch', |
|
|
|
IsInSubmodule = 'IsInSubmodule', |
|
|
|
WrongCase = 'WrongCase', |
|
|
|
CantLockRef = 'CantLockRef', |
|
|
|
CantRebaseMultipleBranches = 'CantRebaseMultipleBranches', |
|
|
|
PatchDoesNotApply = 'PatchDoesNotApply', |
|
|
|
NoPathFound = 'NoPathFound', |
|
|
|
UnknownPath = 'UnknownPath', |
|
|
|
} |