UNPKG

sourcecontrol

Version:

A modern TypeScript CLI application for source control

18 lines 806 B
import { RefManager } from '../../../core/refs'; export declare class BranchRefService { private refManager; static readonly BRANCH_DIR_NAME: "heads"; static readonly HEAD_FILE: "HEAD"; static readonly HEAD_PREFIX: "ref: refs/heads/"; constructor(refManager: RefManager); toBranchRefPath(branchName: string): string; exists(branchName: string): Promise<boolean>; getBranchSha(branchName: string): Promise<string>; updateBranch(branchName: string, sha: string): Promise<void>; deleteBranch(branchName: string): Promise<boolean>; getCurrentBranch(): Promise<string | null>; isDetached(): Promise<boolean>; setCurrentBranch(branchName: string): Promise<void>; setDetachedHead(commitSha: string): Promise<void>; } //# sourceMappingURL=branch-ref.d.ts.map