mirror of
https://github.com/Microsoft/vscode
synced 2024-10-02 09:18:59 +00:00
parent
fe055af0a4
commit
62a957135b
|
@ -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 })
|
||||
|
|
Loading…
Reference in a new issue