merge refactored as a Command for extensibility
as discussed on https://github.com/jenkinsci/git-client-plugin/pull/20