git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: "git add -p ." raises an unexpected "warning: empty strings as pathspecs will be made invalid in upcoming releases. please use . instead if you meant to match all paths"

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 6, 2016, 21:21 UTC
Message-ID
<xmqqlgvszrco.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<20161206180400.GA103573@google.com>
Brandon Williams <bmwill@google.com> writes:
Show 12 quoted lines
> On 11/30, Junio C Hamano wrote:
>> Junio C Hamano <gitster@pobox.com> forgot to Cc: the author of the
>> most relevant change to the issue, d426430e6e ("pathspec: warn on
>> empty strings as pathspec", 2016-06-22).
>> ...
>
> I've been doing a bit of work trying to clean up the pathspec
> initialization code and I believe this can be fixed without
> having to add in this work around.  The code which does the munging is
> always trying to prefix the pathspec regardless if there is a prefix or
> not.  If instead its changed to only try and prefix the original if
> there is indeed a prefix, then it should fix the munging.
Thanks; sounds like a plan.
Previous: Brandon Williams
Message 6 of 6 in “"git add -p ." raises an unexpected "warning: empty strings as pathspecs will be made invalid in upcoming releases. please use . instead if you meant to match all paths"”
  1. Peter UrdaNov 30, 2016
  2. Kevin DaudtNov 30, 2016
  3. Junio C HamanoNov 30, 2016
  4. Junio C HamanoNov 30, 2016
  5. Brandon WilliamsDec 6, 2016
  6. Junio C HamanoDec 6, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.