Can disk devices overlap in the same path?

Is it safe to specify a disk device that is inside another disk device in the container?
For example setup two devices with paths:
/home
/home/git/repositories

I tried this and it works, but is it supported? Does it depend on the order that the devices are listed in a profile or elsewhere?

The idea is to store the subdirectory separately from its parent in the host filesystem.

Yeah, that’s fine, it’s just two separate bind mounts.