提交 f5d5b5d6 编写于 作者: J Joao Moreno

Merge branch 'master' of https://github.com/matthewferderber/vscode into matthewferderber-master

......@@ -996,10 +996,18 @@ export class CommandCenter {
return message;
}
const getPreviousCommitMessage = async () => {
//Only return the previous commit message if it's an amend commit and the repo already has a commit
if (opts && opts.amend && repository.HEAD && repository.HEAD.commit) {
return (await repository.getCommit('HEAD')).message;
}
};
return await window.showInputBox({
value: opts && opts.defaultMsg,
placeHolder: localize('commit message', "Commit message"),
prompt: localize('provide commit message', "Please provide a commit message"),
value: await getPreviousCommitMessage(),
ignoreFocusOut: true
});
};
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册