✏️ git: use discard instead of clean

This commit is contained in:
Joao Moreno
2017-03-09 18:38:33 +01:00
parent f27ef3e352
commit 0428dd5dc3
2 changed files with 6 additions and 6 deletions

View File

@@ -11,8 +11,8 @@
"command.unstage": "Unstage File",
"command.unstageAll": "Unstage All Files",
"command.unstageSelectedRanges": "Unstage Selected Ranges",
"command.clean": "Clean File",
"command.cleanAll": "Clean All Files",
"command.clean": "Discard File",
"command.cleanAll": "Discard All Files",
"command.commit": "Commit",
"command.commitStaged": "Commit Staged",
"command.commitStagedSigned": "Commit Staged (Signed Off)",

View File

@@ -430,8 +430,8 @@ export class CommandCenter {
}
const basename = path.basename(resource.uri.fsPath);
const message = localize('confirm clean', "Are you sure you want to clean changes in {0}?", basename);
const yes = localize('clean', "Clean Changes");
const message = localize('confirm discard', "Are you sure you want to discard changes in {0}?", basename);
const yes = localize('discard', "Discard Changes");
const pick = await window.showWarningMessage(message, { modal: true }, yes);
if (pick !== yes) {
@@ -443,8 +443,8 @@ export class CommandCenter {
@command('git.cleanAll')
async cleanAll(): Promise<void> {
const message = localize('confirm clean all', "Are you sure you want to clean all changes?");
const yes = localize('clean', "Clean Changes");
const message = localize('confirm discard all', "Are you sure you want to discard ALL changes?");
const yes = localize('discard', "Discard Changes");
const pick = await window.showWarningMessage(message, { modal: true }, yes);
if (pick !== yes) {