Re: [PATCH 1.8.0] add: make "add -u" update full tree without pathspec
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 7, 2011, 05:58 UTC
- Message-ID
- <7vsjw0v11p.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <1297045643-26697-1-git-send-email-pclouds@gmail.com>
Nguyễn Thái Ngọc Duy <pclouds@gmail.com> writes:
> 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.
As long as the command takes pathspecs, it should never be tree-wide. Making it tree-wide when there is no pathspec is even worse.
If "add -p" does not limit operation to the current directory, probably that is the inconsistency bug to be fixed.