Re: [RFC] git rm -u
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jan 20, 2013, 21:27 UTC
- Message-ID
- <7vobgjk0iw.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <7v622rn1bh.fsf@alter.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
Show 7 quoted lines
> Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> writes: > >> "git add -u" is one of the only exceptions (with "git grep"). I consider >> this as a bug, and think this should be changed. This has been discussed >> several times here, but no one took the time to actually do the change > > Did we ever agree that it is a good change to begin with? Pointers?
I think you can guess but I no longer need pointers. Others may still be helped, though.
The argument IIRC boils down to
- "git add -u" was made a whole-tree operation when there weren't the ":/" magic pathspec, but "add -u" is very often something you want to do whole tree, and "(cd ../../..; git add -u)" or "git add -u ../../.." are too cumbersome to type.
- "git add -u ." to limit it to the current directory is easy to type.
- As we have the "from the root" magic pathspec these days, requiring "git add -u :/" when the user really means to add everything is no longer too much of a burden, but if we suddenly changed "git add -u" to mean "git add -u .", that is too much of a change in the semantics.