Add submodule helpers to Git plugin

From #1116