Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
git-gui: don't warn for detached head when rebasing
author
Bert Wesarg
<bert.wesarg@googlemail.com>
Sat, 22 Oct 2011 19:39:40 +0000
(21:39 +0200)
committer
Pat Thoyts
<patthoyts@users.sourceforge.net>
Sat, 5 Nov 2011 00:39:04 +0000
(
00:39
+0000)
Signed-off-by: Bert Wesarg <bert.wesarg@googlemail.com>
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
lib/commit.tcl
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
f49517a
)
diff --git
a/lib/commit.tcl
b/lib/commit.tcl
index e27e148803906d867844c3adf5fd6e7b6544027c..0d81432af53ba873d89421fa4767243818ab1f0a 100644
(file)
--- a/
lib/commit.tcl
+++ b/
lib/commit.tcl
@@
-263,7
+263,9
@@
proc commit_commitmsg {curHEAD msg_p} {
global is_detached repo_config
global pch_error
- if {$is_detached && [is_config_true gui.warndetachedcommit]} {
+ if {$is_detached
+ && ![file exists [gitdir rebase-merge head-name]]
+ && [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\