git-gui: warn when trying to commit on a detached head
authorHeiko Voigt <hvoigt@hvoigt.net>
Tue, 15 Feb 2011 19:43:54 +0000 (19:43 +0000)
committerPat Thoyts <patthoyts@users.sourceforge.net>
Fri, 20 May 2011 21:49:15 +0000 (22:49 +0100)
commite34789cc8ba45d5491c007274b41849d3b0b84b7
tree4b22d78a711f6b43e9ab20253adbe664aba2e4f8
parent1cac41f8eaf00e3e8837bf8aab12fc317a5b8a21
git-gui: warn when trying to commit on a detached head

The commandline is already warning when checking out a detached head.
Since the only thing thats potentially dangerous is to create commits
on a detached head lets warn in case the user is about to do that.

Signed-off-by: Heiko Voigt <hvoigt@hvoigt.net>
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
git-gui.sh
lib/commit.tcl