Add function to diff using git if available