summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 54531e7)
raw | patch | inline | side by side (parent: 54531e7)
author | Bert Wesarg <bert.wesarg@googlemail.com> | |
Sat, 22 Oct 2011 19:39:39 +0000 (21:39 +0200) | ||
committer | Pat Thoyts <patthoyts@users.sourceforge.net> | |
Sat, 5 Nov 2011 00:39:03 +0000 (00:39 +0000) |
Signed-off-by: Bert Wesarg <bert.wesarg@googlemail.com>
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
lib/commit.tcl | patch | blob | history | |
lib/option.tcl | patch | blob | history |
diff --git a/lib/commit.tcl b/lib/commit.tcl
index 372bed9948390483d66036231fce2fe8964d7bb6..e27e148803906d867844c3adf5fd6e7b6544027c 100644 (file)
--- a/lib/commit.tcl
+++ b/lib/commit.tcl
global is_detached repo_config
global pch_error
- if {$is_detached && $repo_config(gui.warndetachedcommit)} {
+ if {$is_detached && [is_config_true gui.warndetachedcommit]} {
set msg [mc "You are about to commit on a detached head.\
This is a potentially dangerous thing to do because if you switch\
to another branch you will loose your changes and it can be difficult\
diff --git a/lib/option.tcl b/lib/option.tcl
index fb0677675ad7eddc4187cc00d0e8e039050b80e2..0cf1da1d7ebe75fe91322d9b404dbf4bd8a3b00f 100644 (file)
--- a/lib/option.tcl
+++ b/lib/option.tcl
{i-0..99 gui.commitmsgwidth {mc "Commit Message Text Width"}}
{t gui.newbranchtemplate {mc "New Branch Name Template"}}
{c gui.encoding {mc "Default File Contents Encoding"}}
+ {b gui.warndetachedcommit {mc "Warn before committing to a detached head"}}
{s gui.stageuntracked {mc "Staging of untracked files"} {list "yes" "no" "ask"}}
} {
set type [lindex $option 0]