summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLibravatar Martin Schön <Martin.Schoen@loewensteinmedical.de>2018-07-02 15:28:09 +0200
committerLibravatar Pratyush Yadav <me@yadavpratyush.com>2020-11-27 20:06:38 +0530
commit627c87f84c157885d587125cf0c73591a0e3ee7a (patch)
tree1f6150649c75eb2c238b2949558697b207f02eec /lib
parentgit-gui: Only touch GITGUI_MSG when needed (diff)
downloadtgif-627c87f84c157885d587125cf0c73591a0e3ee7a.tar.xz
git-gui: use commit message template
Use the file described by commit.template (if set) to show the commit message template, just like other GUIs. Signed-off-by: Martin Schön <Martin.Schoen@loewensteinmedical.de> Signed-off-by: Pratyush Yadav <me@yadavpratyush.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/commit.tcl1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/commit.tcl b/lib/commit.tcl
index b516aa2990..11379f8ad3 100644
--- a/lib/commit.tcl
+++ b/lib/commit.tcl
@@ -456,6 +456,7 @@ A rescan will be automatically started now.
}
$ui_comm delete 0.0 end
+ load_message [get_config commit.template]
$ui_comm edit reset
$ui_comm edit modified false
if {$::GITGUI_BCK_exists} {