Elektrine lite

← Feed

@b0rk@social.jvns.ca

Post #2349213

2025-12-02 17:27 UTC

@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.

Replies (1)

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

    @enhancedscurry@mastodon.social My best guess is that this is because even though in Git a _commit_ can theoretically contain an empty directory, the _index_ can't have an empty directory.

    Open ##2349214