feat(stash): return the stash result (#177732)

re #177726
This commit is contained in:
Roberto Huertas 2023-12-08 12:29:19 +01:00 committed by GitHub
parent fe055af0a4
commit 62a957135b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3275,18 +3275,21 @@ export class CommandCenter {
}
@command('git.stash', { repository: true })
async stash(repository: Repository): Promise<void> {
await this._stash(repository);
async stash(repository: Repository): Promise<boolean> {
const result = await this._stash(repository);
return result;
}
@command('git.stashStaged', { repository: true })
async stashStaged(repository: Repository): Promise<void> {
await this._stash(repository, false, true);
async stashStaged(repository: Repository): Promise<boolean> {
const result = await this._stash(repository, false, true);
return result;
}
@command('git.stashIncludeUntracked', { repository: true })
async stashIncludeUntracked(repository: Repository): Promise<void> {
await this._stash(repository, true);
async stashIncludeUntracked(repository: Repository): Promise<boolean> {
const result = await this._stash(repository, true);
return result;
}
@command('git.stashPop', { repository: true })