git commit with input bail early

This commit is contained in:
Joao Moreno 2017-05-04 16:45:49 +02:00
parent b31c1e1fc9
commit 4c62dfa0a4

View file

@ -608,6 +608,10 @@ export class CommandCenter {
@command('git.commitWithInput')
async commitWithInput(): Promise<void> {
if (!scm.inputBox.value) {
return;
}
const didCommit = await this.smartCommit(async () => scm.inputBox.value);
if (didCommit) {