Mercurial: there's an extension for that!
Git: you can fix that just by adding --foo bar:buzz --derp herp to the commandline lol RTFM
I suppose git's tree objects could point to the empty tree to record an empty folder, but most of the git code is comparing file blobs not trees.
How do you get around this in mercurial?
Same (with a .empty or .keep file).
Mercurial: there's an extension for that!
Git: you can fix that just by adding --foo bar:buzz --derp herp to the commandline lol RTFM