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

Re: [PATCH] git-new-workdir: Don't fail if the target directory is empty

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 18, 2014, 20:15 UTC
Message-ID
<xmqqvbmcuuyd.fsf@gitster.dls.corp.google.com>
In-Reply-To
<1416339408.3899.22.camel@mad-scientist.net>
Paul Smith <paul@mad-scientist.net> writes:
> Getting rid of ls/wc was not as simple as I'd hoped,

I didn't say ls/wc was not portable. Assuming that a directory for which the output from "ls -a" has two entries is empty may be.

Previous: Paul SmithNext: Junio C Hamano
Message 2 of 4 in “git-new-workdir: Don't fail if the target directory is empty”
  1. git-new-workdir: Don't fail if the target directory is emptyPaul Smith, Nov 18, 2014
  2. Junio C HamanoNov 18, 2014
  3. Junio C HamanoNov 19, 2014
  4. Paul SmithNov 20, 2014

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.