UNPKG

@codecovevienna/gittt-cli

Version:

Tracking time with CLI into a git repository

19 lines (18 loc) 777 B
import { DefaultLogFields } from "simple-git/src/lib/tasks/log"; import { FileHelper } from "./"; export declare class GitHelper { private git; private fileHelper; constructor(configDir: string, fileHelper: FileHelper); logChanges: () => Promise<ReadonlyArray<DefaultLogFields>>; pushChanges: () => Promise<void>; commitChanges: (message?: string | undefined) => Promise<void>; initRepo: (gitUrl: string) => Promise<void>; pullRepo: (reset?: boolean) => Promise<void>; /** * Gets the current branch of the git repo the app is currently in, NOT the branch of the main repo in ~/.gittt-cli * * @returns Promise with either a string with the branch or undefined */ getCurrentBranch: () => Promise<string | undefined>; }