Support fast forward git merge.

@devoncarew PTAL thanks.