add: update pathless 'add [-u|-A]' warning to reflect change of plan
We originally thought the transition would need a period where "git add [-u|-A]" without pathspec would be forbidden, but the warning is big enough to scare people and teach them not to use it (or, if so, to understand the consequences). Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Matthieu Moy committed
Mar 11, 2013 at 09:01 UTC
c6898ebf219424775160f28855964b103dd880b4
1 file changed
+3
-3
builtin/add.c
+3
-3
@@ -328,9 +328,9 @@ static void warn_pathless_add(const char *option_name, const char *short_name) {
328
* this is not the original behavior and can't be
329
* changed until users trained themselves not to type
330
* "git add -u" or "git add -A". For now, we warn and
331
- * keep the old behavior. Later, this warning can be
332
- * turned into a die(...), and eventually we may
333
- * reallow the command with a new behavior.
331
+ * keep the old behavior. Later, the behavior can be changed
332
+ * to tree-wide, keeping the warning for a while, and
333
+ * eventually we can drop the warning.
334
*/
335
warning(_("The behavior of 'git add %s (or %s)' with no path argument from a\n"
336
"subdirectory of the tree will change in Git 2.0 and should not be used anymore.\n"