UNPKG

git-command-helper

Version:
60 lines (59 loc) 1.22 kB
import { spawnSyncReturn } from "cross-spawn"; type ObjResult = { U: string; } | { M: string; } | { D: string; }; /** * git status * @param opt * @returns raw result */ export declare function gitStatus(opt: { [key: string]: any; /** current working directory */ cwd: string; /** true = --porcelain */ porcelain?: boolean; /** show raw output instead parsed object */ raw: true; }): spawnSyncReturn; /** * git status * @param opt * @returns parsed result */ export declare function gitStatus(opt: { [key: string]: any; /** current working directory */ cwd: string; /** true = --porcelain */ porcelain?: boolean; /** show raw output instead parsed object */ raw: false; }): ObjResult[]; /** * git status * @param opt * @returns parsed result */ export declare function gitStatus(opt: { [key: string]: any; /** current working directory */ cwd: string; /** true = --porcelain */ porcelain?: boolean; }): ObjResult[]; /** * git status * @param opt * @returns parsed result */ export declare function gitStatus(opt: { [key: string]: any; /** current working directory */ cwd: string; }): ObjResult[]; export {};