eas-cli
Version:
EAS command line tool
32 lines (31 loc) • 1.4 kB
TypeScript
import { Client } from '../vcs';
export default class GitClient extends Client {
private readonly maybeCwdOverride?;
constructor(maybeCwdOverride?: string | undefined);
ensureRepoExistsAsync(): Promise<void>;
commitAsync({ commitMessage, commitAllFiles, nonInteractive, }: {
commitMessage: string;
commitAllFiles?: boolean;
nonInteractive: boolean;
}): Promise<void>;
isCommitRequiredAsync(): Promise<boolean>;
showChangedFilesAsync(): Promise<void>;
hasUncommittedChangesAsync(): Promise<boolean>;
getRootPathAsync(): Promise<string>;
makeShallowCopyAsync(destinationPath: string): Promise<void>;
getCommitHashAsync(): Promise<string | undefined>;
trackFileAsync(file: string): Promise<void>;
getBranchNameAsync(): Promise<string | null>;
getLastCommitMessageAsync(): Promise<string | null>;
showDiffAsync(): Promise<void>;
isFileUntrackedAsync(path: string): Promise<boolean>;
isFileIgnoredAsync(filePath: string): Promise<boolean>;
canGetLastCommitMessage(): boolean;
}
/**
* Checks if git is configured to be case sensitive
* @returns {boolean | undefined}
* - boolean - is git case sensitive
* - undefined - case sensitivity is not configured and git is using default behavior
*/
export declare function isGitCaseSensitiveAsync(cwd: string | undefined): Promise<boolean | undefined>;