|
|
|
@ -41,6 +41,7 @@ export interface IGitCommandManager {
|
|
|
|
|
submoduleForeach(command: string, recursive: boolean): Promise<string>
|
|
|
|
|
submoduleSync(recursive: boolean): Promise<void>
|
|
|
|
|
submoduleUpdate(fetchDepth: number, recursive: boolean): Promise<void>
|
|
|
|
|
submoduleStatus(): Promise<boolean>
|
|
|
|
|
tagExists(pattern: string): Promise<boolean>
|
|
|
|
|
tryClean(): Promise<boolean>
|
|
|
|
|
tryConfigUnset(configKey: string, globalConfig?: boolean): Promise<boolean>
|
|
|
|
@ -357,6 +358,11 @@ class GitCommandManager {
|
|
|
|
|
await this.execGit(args)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
async submoduleStatus(): Promise<boolean> {
|
|
|
|
|
const output = await this.execGit(['submodule', 'status'], true)
|
|
|
|
|
return output.exitCode === 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
async tagExists(pattern: string): Promise<boolean> {
|
|
|
|
|
const output = await this.execGit(['tag', '--list', pattern])
|
|
|
|
|
return !!output.stdout.trim()
|
|
|
|
|