Adding .git/SQUASH_MSG detection to commit message autofill

This commit is contained in:
Daniel Davis
2020-06-26 12:35:32 +01:00
parent 277627c090
commit 3f90d90ab2
2 changed files with 14 additions and 0 deletions

View File

@@ -866,9 +866,12 @@ export class Repository implements Disposable {
async getInputTemplate(): Promise<string> {
const mergeMessage = await this.repository.getMergeMessage();
const squashMessage = await this.repository.getSquashMessage();
if (mergeMessage) {
return mergeMessage;
} else if (squashMessage) {
return squashMessage;
}
return await this.repository.getCommitTemplate();