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

Properties

buildDefaultProjectPath: any = ...
fileService: FileService
git: Git
gitErrorHandler: GitErrorHandler
labelProvider: LabelProvider
messageService: MessageService
progressService: ProgressService
quickInputService: QuickInputService
repositoryProvider: GitRepositoryProvider
workspaceService: WorkspaceService

Methods

  • applyLatestStash(): Promise<void>
  • applyStash(): Promise<void>
  • checkout(): Promise<void>
  • 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(url?: string, folder?: string, branch?: string): Promise<undefined | string>
  • commitMessageForAmend(): Promise<string>
  • doBuildDefaultProjectPath(folderPath: string, gitURI: string): Promise<string>
  • doInitRepository(uri: string): Promise<void>
  • doStashAction(action: "pop" | "apply" | "drop", text: string, getMessage?: (() => Promise<string>)): Promise<void>
  • 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(): Promise<void>
  • fetch(): Promise<void>
  • getCurrentBranch(repository?: undefined | Repository): Promise<undefined | Branch>
  • getRemotes(): Promise<Remote[]>
  • initRepository(): Promise<void>
  • merge(): Promise<void>
  • performDefaultGitAction(action: GitAction): Promise<void>
  • popLatestStash(): Promise<void>
  • popStash(): Promise<void>
  • pull(): Promise<void>
  • push(): Promise<void>
  • query(quickPick: any, filter: string, folder: any): void
  • stash(): Promise<void>
  • toRepositoryPathQuickOpenItem(root: FileStat): GitQuickPickItem<URI>
  • withProgress<In, Out>(fn: ((...arg: In[]) => Promise<Out>)): Promise<Out>
  • 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>