[PATCH 0/4] make pathless 'add [-u|-A]' warning less noisy
- From
Jonathan Nieder <jrnieder@gmail.com>
- Date
- Mar 19, 2013, 03:44 UTC
- Message-ID
- <20130319034415.GI5062@elie.Belkin>
- In-Reply-To
- <20130313041037.GB5378@sigill.intra.peff.net>
Hi,
Jeff King wrote:
> The > config option added by this patch gives them such an option.
I suspect the need for this config option is a sign that the warning is too eager. After all, the whole idea of the change being safe is that it shouldn't make a difference the way people usually use git, no?
In other words, how about the following patches? With them applied, hopefully no one would mind even if the warning becomes a fatal error.
Looking forward to your thoughts,
Jonathan Nieder (4): add: make pathless 'add [-u|-A]' warning a file-global function add: make warn_pathless_add() a no-op after first call add -u: only show pathless 'add -u' warning when changes exist outside cwd add -A: only show pathless 'add -A' warning when changes exist outside cwd
builtin/add.c | 142 ++++++++++++++++++++++++++++++++++++++++------------------ 1 file changed, 99 insertions(+), 43 deletions(-)