From a597d6920a16618d99c02c7e1aff696f49b034fd Mon Sep 17 00:00:00 2001 From: Thibaut Verron Date: Thu, 21 Nov 2019 13:04:33 +0100 Subject: [PATCH] git-auto-commit-mode.el --- git-auto-commit-mode.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/git-auto-commit-mode.el b/git-auto-commit-mode.el index 9e12fab..2cd627f 100644 --- a/git-auto-commit-mode.el +++ b/git-auto-commit-mode.el @@ -138,6 +138,11 @@ STRING is the output line from PROC." Default to FILENAME." (let ((relative-filename (gac-relative-file-name filename))) (if (not gac-ask-for-summary-p) + (if gac-default-message + (if (functionp gac-default-message) + (gac-default-message) + gac-default-message) + relative-filename) (or gac-default-message relative-filename) (read-string "Summary: " nil nil relative-filename))))