Elektrine lite

← Feed

@enhancedscurry@mastodon.social

Post #2349212

2025-12-02 17:08 UTC

@b0rk@social.jvns.ca I don't think git has any native recognition of directories. It just knows about paths. Or at least you cannot commit an empty directory.

Replies (2)

  • @b0rk@social.jvns.ca 2025-12-02 17:27

    @enhancedscurry@mastodon.social i just looked into this and as far as I can tell from my experimentation, it's theoretically possible in Git to create a commit with an empty directory in it (like there's nothing in the data model that prevents it). BUT if you check out that commit, the checkout won't include the empty directory, so the effect is that (as we all know) you can't have empty directories in Git.

    Open ##2349213

  • @waldi@chaos.social 2025-12-02 17:48

    @enhancedscurry@mastodon.social @b0rk@social.jvns.ca A directory points to another tree object, while a file points to a blob. Something like that. (Yes, I had to assemble commits by hand.)

    Open ##2349215