Re: why still no empty directory support in git

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.
    -- http://cr.yp.to/proto/maildir.html

where a "unique name" is the filename used for a message. In practice,
every maildir implementation I have seen ignores files starting with a
dot. Do you have one that doesn't?

My apologies. This works just fine, and I'm a dolt.

Happy new year!

(I'm still academically interested in how to avoid the rmdir(), but as I said before, that's a topic for someone else to pick up now.)

-- Asheesh.

--
English literature's performing flea.
		-- Sean O'Casey on P. G. Wodehouse
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux