change diff to git diff and local judge logic