From: Ævar Arnfjörð Bjarmason Date: Mon, 06 Sep 2010 12:21:33 GMT Subject: [PATCH 04/15] gettextize: git-clean clean.requireForce messages Message-ID: <1283775704-29440-5-git-send-email-avarab@gmail.com> In-Reply-To: <1283638229-14199-1-git-send-email-avarab@gmail.com> Split up the "clean.requireForce set/defaults to true..." die() message to make it easier to translate. Signed-off-by: Ævar Arnfjörð Bjarmason --- builtin/clean.c | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/builtin/clean.c b/builtin/clean.c index 10dde87..642d767 100644 --- a/builtin/clean.c +++ b/builtin/clean.c @@ -78,8 +78,12 @@ int cmd_clean(int argc, const char **argv, const char *prefix) die(_("-x and -X cannot be used together")); if (!show_only && !force) - die("clean.requireForce %s to true and neither -n nor -f given; " - "refusing to clean", config_set ? "set" : "defaults"); + if (config_set) + die(_("clean.requireForce set to true and neither -n nor -f given; " + "refusing to clean")); + else + die(_("clean.requireForce defaults to true and neither -n nor -f given; " + "refusing to clean")); if (force > 1) rm_flags = 0; -- 1.7.2.3.313.gcd15