Implement automatic fast-forward merge for submodules