Re: [PATCH 2/4] commit: introduce a config key to allow as-is commit with i-t-a entries
- From
Nguyen Thai Ngoc Duy <pclouds@gmail.com>
- Date
- Feb 7, 2012, 00:43 UTC
- Message-ID
- <CACsJy8Be=WLv1Zz5CqQMYfi8dJN6M980kVuckAQKAujVo8xFkQ@mail.gmail.com>
- In-Reply-To
- <7vhaz37nce.fsf@alter.siamese.dyndns.org>
2012/2/7 Junio C Hamano <gitster@pobox.com>:
Show 9 quoted lines
>> + if (i < active_nr)
>> + warning(_("You are committing as-is with intent-to-add entries as the result of\n"
>> + "\"git add -N\". Git currently forbids this case.
>
> Can we phrase this a bit better?
>
> It is not like "forbids", but is "giving up because you didn't tell me
> what content to include in the commit, even though you said you will tell
> me later"."rejects"? I would rather say "see `git add -N` man page for more explanation" than putting it here. The warning is quite long as it is right now.
-- Duy