Files
git/builtin
Junio C Hamano 33c33cac46 add: make "add -u/-A" update full tree without pathspec
When -u was introduced in dfdac5d (git-add -u: match the index with
working tree., 2007-04-20), "add -u" (without pathspec) added
everything. Shortly after, 2ed2c22 (git-add -u paths... now works from
subdirectory, 2007-08-16) broke it while fixing something related.

This makes -u and -A inconsistent with some other options, namely -p.
It's been four years since the unintentional breakage and people are
probably used to "git add -u" updating only current directory.

Let's plan in 1.8.0 to change its behaviour in such a way that does
not hurt existing users too badly during the transition period.

 - A new add.treewideupdate configuration variable can be set to
   "true" to make "add -u/-A" that is ran without any pathspec from
   a subdirectory to affect the whole tree.  When the variable is
   set to "false", the operation is limited to the current working
   directory.

 - Missing configuration variable means the same thing as setting it
   to "false" for now, but the user will be given a warning about
   the transition plan, and an advise to either set the variable or
   to say "."

 - In 1.8.0, the warning message needs to be rephrased, the added
   test needs to be updated, and the default value for the variable
   needs to be flipped to "true".  In a few releases after that, we
   would remove the warning message.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
2011-03-22 16:30:03 -07:00
..
2010-11-24 15:55:19 -08:00
2011-03-19 23:24:12 -07:00
2010-10-21 17:16:10 -07:00
2011-03-19 23:24:19 -07:00
2011-02-27 21:17:36 -08:00
2011-03-08 12:12:04 -08:00
2011-03-19 23:24:12 -07:00
2010-12-12 21:49:50 -08:00
2010-11-24 15:55:19 -08:00
2011-03-19 23:23:56 -07:00
2010-11-15 10:04:43 -08:00
2011-03-19 23:24:12 -07:00
2011-03-19 23:24:12 -07:00
2010-11-24 15:55:19 -08:00
2010-07-07 11:18:26 -07:00
2010-11-17 15:01:00 -08:00
2010-11-15 10:04:43 -08:00