Implement submodule patch stage/unstage