Re: [RFC] git rm -u
- From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
- Date
- Jan 21, 2013, 20:03 UTC
- Message-ID
- <vpqhamapal1.fsf@grenoble-inp.fr>
- In-Reply-To
- <7v1udegy2o.fsf@alter.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
> But v1.5.2.5~1 (git-add -u paths... now works from subdirectory, > 2007-08-16) changed the semantics to limit the operation to the > working tree.
Not really. It fixed "git add -u path", not plain "git add -u". A quick test checking out and compiling v1.5.2.5~1^ shows that "git add -u ." from a subdirectory was adding everything from the root.
My interpretation is that v1.5.2.5~1 fixed an actual bug, without thinking about what would happen when "git add -u" was called without path, so the behavior is "what happens to be the most natural to implement". Indeed, the behavior was actually documented only later, in v1.5.4.3~3 (Feb 21 00:29:39 2008, Clarified the meaning of git-add -u in the documentation), the previous doc said only "If no paths are specified, all tracked files are updated.".
-- Matthieu Moy http://www-verimag.imag.fr/~moy/