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

Re: [PATCH 2/2] Use is_pseudo_dir_name everywhere

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 10, 2009, 02:48 UTC
Message-ID
<7viqonzxiw.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<20090109102407.GA4089@myhost>
Alexander Potashev <aspotashev@gmail.com> writes:
> I didn't think over the support of 'lost+found'.

Yeah, I do not think it is particularly a good idea, but that is what (I thought) you implied in your original message.

In any case, you can always do
    $ git clone -n $there it.git
    $ mv it.git/.git . && rmdir it.git && git checkout -f

or something like that (adjust what you move out of it.git when you are doing a bare clone), so in that sense I do not deeply care about the motivation of your patch myself.

But I liked the helper function to abstract away the many identical checks we do for "is it a dot or a dot dot?", and that was the primary reason why I commented on your patches.

Previous: Alexander Potashev
Message 8 of 8 in “Allow cloning to an existing empty directory”
  1. 0/2 Allow cloning to an existing empty directoryAlexander Potashev, Jan 8, 2009
  2. 1/2 Allow cloning to an existing empty directoryAlexander Potashev, Jan 8, 2009
  3. 2/2 Use is_pseudo_dir_name everywhereAlexander Potashev, Jan 8, 2009
  4. Johannes SixtJan 9, 2009
  5. Johannes SixtJan 9, 2009
  6. Junio C HamanoJan 9, 2009
  7. Alexander PotashevJan 9, 2009
  8. Junio C HamanoJan 10, 2009

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.