sharing same code between vcsCommit/vcsDiff/vcsupdate