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

Re: why still no empty directory support in git

From
Asheesh Laroia <asheesh@asheesh.org>
Date
Jan 2, 2009, 21:31 UTC
Message-ID
<alpine.DEB.2.00.0901021626580.2099@rose.makesad.us>
In-Reply-To
<alpine.DEB.1.00.0901021954410.30769@pacific.mpi-cbg.de>
On Fri, 2 Jan 2009, Johannes Schindelin wrote:
> Hi,
Hi
*wipes the egg off his face*
Show 17 quoted lines
> On Thu, 1 Jan 2009, Jeff King wrote:
>
>> On Tue, Dec 30, 2008 at 03:58:46AM -0500, Asheesh Laroia wrote:
>>
>>> So, let's say I take your suggestion.
>>>
>>> $ touch ~/Maildir/new/.exists
>>> $ git add ~/Maildir/new/.exists && git commit -m "La di da"
>>>
>>> Now a spec-compliant Maildir user agent will attempt to deliver this new
>>> "email message" of zero bytes into the mail spool and assign it a message
>>> UID.  Doing so will remove it from Maildir/new.
>>
>> No. The maildir spec says:
>>
>>   A unique name can be anything that doesn't contain a colon (or slash)
>>   and doesn't start with a dot.
Oops.  I never actually tried this...
> For the record, I am using Git to manage my mails, and never had any 
> problems after installing a hook which marks new empty directories with 
> .gitignore.

I'll give that a shot, and my apologies for the noise on the list with regard to this particular example.

I do still believe that git shouldn't rmdir() empty directories behind the user's back, but with this particular use case gone I'm no longer as adamant as before.

My apologies for not having tested this earlier; I will test it shortly, but there's every reason to think that Johannes and Jeff are right!

-- Asheesh.
-- 
It's interesting to think that many quite distinguished people have
bodies similar to yours.
Previous: Johannes SchindelinNext: Asheesh Laroia
Message 13 of 18 in “why still no empty directory support in git”
  1. Ping YinDec 30, 2008
  2. Asheesh LaroiaDec 30, 2008
  3. Jeff WhitesideDec 30, 2008
  4. Robin RosenbergDec 30, 2008
  5. Junio C HamanoDec 30, 2008
  6. Ping YinDec 30, 2008
  7. Asheesh LaroiaDec 30, 2008
  8. demerphqDec 30, 2008
  9. Asheesh LaroiaDec 30, 2008
  10. David BrownDec 31, 2008
  11. Jeff KingJan 1, 2009
  12. Johannes SchindelinJan 2, 2009
  13. Asheesh LaroiaJan 2, 2009
  14. Asheesh LaroiaJan 8, 2009
  15. Liu YubaoDec 30, 2008
  16. Anatol PomozovJan 1, 2009
  17. Johannes SchindelinDec 30, 2008
  18. Michael GaberDec 30, 2008

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.