Nice idea. But when taking commits as folders one should delete, add and remame files in the folder and that is not possible in a commit because it creates another commit. So I think this is nit the right mental model

Files and folders can be read-only, a concept that has been around for about as long as the folders abstraction itself.