UNPKG

git-command-helper

Version:
21 lines (20 loc) 787 B
/** * Performs a git dry-run for the specified commands to check if there are changes to push. * @param cwd - The working directory where the git command should be executed. * @param commands - The git command arguments (e.g., ["push", origin, branch]). */ export declare function dryRun({ cwd, commands }: { cwd: string; commands: string[]; }): Promise<boolean>; /** * Checks if the current branch can be pushed to the specified origin and branch. * @param cwd - The working directory where the git command should be executed. * @param origin - The name of the remote origin. * @param branch - The name of the branch to push. */ export declare function isCanPush({ cwd, origin, branch }: { cwd: string; origin: string; branch: string; }): Promise<boolean>;