submodule: add absorb-git-dir function