Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GitQuickOpenService

Service delegating into the Quick Input Service, so that the Git commands can be further refined. For instance, the remote can be specified for pull, push, and fetch. And the branch can be specified for git merge.

Hierarchy

  • GitQuickOpenService

Index

Constructors

constructor

Properties

Private buildDefaultProjectPath

buildDefaultProjectPath: any = ...

Protected Readonly fileService

fileService: FileService

Protected Readonly git

git: Git

Protected Readonly gitErrorHandler

gitErrorHandler: GitErrorHandler

Protected Readonly labelProvider

labelProvider: LabelProvider

Protected Readonly messageService

messageService: MessageService

Protected Readonly progressService

progressService: ProgressService

Protected Readonly quickInputService

quickInputService: QuickInputService

Protected Readonly repositoryProvider

repositoryProvider: GitRepositoryProvider

Protected Readonly workspaceService

workspaceService: WorkspaceService

Methods

applyLatestStash

  • applyLatestStash(): Promise<void>

applyStash

  • applyStash(): Promise<void>

checkout

  • checkout(): Promise<void>

chooseTagsAndBranches

  • chooseTagsAndBranches(execFunc: (branchName: string, currentBranchName: string) => void, repository?: undefined | Repository): Promise<void>
  • Parameters

    • execFunc: (branchName: string, currentBranchName: string) => void
        • (branchName: string, currentBranchName: string): void
        • Parameters

          • branchName: string
          • currentBranchName: string

          Returns void

    • repository: undefined | Repository = ...

    Returns Promise<void>

clone

  • clone(url?: string, folder?: string, branch?: string): Promise<undefined | string>

commitMessageForAmend

  • commitMessageForAmend(): Promise<string>

Private doBuildDefaultProjectPath

  • doBuildDefaultProjectPath(folderPath: string, gitURI: string): Promise<string>

Private doInitRepository

  • doInitRepository(uri: string): Promise<void>

Protected doStashAction

  • doStashAction(action: "drop" | "pop" | "apply", text: string, getMessage?: () => Promise<string>): Promise<void>

Protected doWrapWithProgress

  • doWrapWithProgress<In, Out>(fn: (...args: In[]) => Promise<Out>): (...args: In[]) => Promise<Out>
  • Type parameters

    • In

    • Out

    Parameters

    • fn: (...args: In[]) => Promise<Out>
        • (...args: In[]): Promise<Out>
        • Parameters

          • Rest ...args: In[]

          Returns Promise<Out>

    Returns (...args: In[]) => Promise<Out>

      • (...args: In[]): Promise<Out>
      • Parameters

        • Rest ...args: In[]

        Returns Promise<Out>

dropStash

  • dropStash(): Promise<void>

fetch

  • fetch(): Promise<void>

Private getBranches

Private getCurrentBranch

  • getCurrentBranch(repository?: undefined | Repository): Promise<undefined | Branch>

Private getRemotes

  • getRemotes(): Promise<Remote[]>

Private getRepository

Private getTags

initRepository

  • initRepository(): Promise<void>

merge

  • merge(): Promise<void>

performDefaultGitAction

  • performDefaultGitAction(action: GitAction): Promise<void>

popLatestStash

  • popLatestStash(): Promise<void>

popStash

  • popStash(): Promise<void>

pull

  • pull(): Promise<void>

push

  • push(): Promise<void>

Private query

  • query(quickPick: any, filter: string, folder: any): void

stash

  • stash(): Promise<void>

Private toRepositoryPathQuickOpenItem

  • toRepositoryPathQuickOpenItem(root: FileStat): GitQuickPickItem<default>

Protected withProgress

  • withProgress<In, Out>(fn: (...arg: In[]) => Promise<Out>): Promise<Out>

Protected Readonly wrapWithProgress

  • wrapWithProgress<In, Out>(fn: (...args: In[]) => Promise<Out>): (...args: In[]) => Promise<Out>
  • Type parameters

    • In

    • Out

    Parameters

    • fn: (...args: In[]) => Promise<Out>
        • (...args: In[]): Promise<Out>
        • Parameters

          • Rest ...args: In[]

          Returns Promise<Out>

    Returns (...args: In[]) => Promise<Out>

      • (...args: In[]): Promise<Out>
      • Parameters

        • Rest ...args: In[]

        Returns Promise<Out>