Support lazy git/hg diff update