Re: [PATCH 0/2] "git add -A/--no-all" finishing touches
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Apr 25, 2013, 23:19 UTC
- Message-ID
- <7v4neu19mj.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <7vhaiu1a89.fsf@alter.siamese.dyndns.org>
Junio C Hamano <gitster@pobox.com> writes:
Show 8 quoted lines
> One thing I noticed about Jonathan's warn_pathless_add() thing is > that even though it knows for which path we would behave differently > between the current version and Git 2.0, the warning message does > not say which path outside the current directory would be added if > not restricted with an explicit ".", and leaves the reader in > suspense. > > We may want to fix it by tweaking the end of the message, perhaps?
Hmph, bad idea.
At the point of calling warn_pathless_add(), it seems that we are triggering this for paths that are not necessarily modified when run with "add -n -u".