Skip to content

Commit 8a2819b

Browse files
committed
1 parent 49a5ddd commit 8a2819b

2 files changed

Lines changed: 1 addition & 14 deletions

File tree

extensions/git/src/commands.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1361,19 +1361,6 @@ export class CommandCenter {
13611361
await this.commitWithAnyInput(repository);
13621362
}
13631363

1364-
@command('git.commitWithInput', { repository: true })
1365-
async commitWithInput(repository: Repository): Promise<void> {
1366-
if (!repository.inputBox.value) {
1367-
return;
1368-
}
1369-
1370-
const didCommit = await this.smartCommit(repository, async () => repository.inputBox.value);
1371-
1372-
if (didCommit) {
1373-
repository.inputBox.value = await repository.getCommitTemplate();
1374-
}
1375-
}
1376-
13771364
@command('git.commitStaged', { repository: true })
13781365
async commitStaged(repository: Repository): Promise<void> {
13791366
await this.commitWithAnyInput(repository, { all: false });

extensions/git/src/repository.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ export class Repository implements Disposable {
680680
const root = Uri.file(repository.root);
681681
this._sourceControl = scm.createSourceControl('git', 'Git', root);
682682
this._sourceControl.inputBox.placeholder = localize('commitMessage', "Message (press {0} to commit)");
683-
this._sourceControl.acceptInputCommand = { command: 'git.commitWithInput', title: localize('commit', "Commit"), arguments: [this._sourceControl] };
683+
this._sourceControl.acceptInputCommand = { command: 'git.commit', title: localize('commit', "Commit"), arguments: [this._sourceControl] };
684684
this._sourceControl.quickDiffProvider = this;
685685
this._sourceControl.inputBox.validateInput = this.validateInput.bind(this);
686686
this.disposables.push(this._sourceControl);

0 commit comments

Comments
 (0)