UNPKG

sourcecontrol

Version:

A modern TypeScript CLI application for source control

21 lines 969 B
import { Repository } from '../../core/repo'; import { BranchInfo, CreateBranchOptions, CheckoutOptions } from './types'; export declare class BranchManager { private refManager; private repository; private branchRefService; private branchInfoService; static readonly DEFAULT_BRANCH = "master"; constructor(repository: Repository); init(): Promise<void>; createBranch(branchName: string, options?: CreateBranchOptions): Promise<BranchInfo>; checkout(target: string, options?: CheckoutOptions): Promise<void>; deleteBranch(branchName: string, force?: boolean): Promise<void>; renameBranch(oldName: string, newName: string, force?: boolean): Promise<void>; getBranch(branchName: string): Promise<BranchInfo>; listBranches(): Promise<BranchInfo[]>; getCurrentBranch(): Promise<string | null>; isDetached(): Promise<boolean>; getCurrentCommit(): Promise<string>; } //# sourceMappingURL=branch-manager.d.ts.map