]> git.ipfire.org Git - thirdparty/git.git/commit - builtin/clean.c
git-clean: Fix error message if clean.requireForce is not set.
authorJunio C Hamano <gitster@pobox.com>
Tue, 13 Nov 2007 05:13:05 +0000 (21:13 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 19 Nov 2007 03:11:42 +0000 (19:11 -0800)
commit625db1b7530b621f32b0ef1ef502a09a05872f5d
tree1805dcd5be151310ca6ccbf6b54a1a4990bec69e
parent113f10f22f4b3b599e44e192e241e0bace9cc39e
git-clean: Fix error message if clean.requireForce is not set.

It was distracting to see this error message:

     clean.requireForce set and -n or -f not given; refusing to clean

even though clean.requireForce was not set at all. This patch distinguishes
the cases and gives a different message depending on whether the
configuration variable is not set or set to true.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-clean.c