update patches and git diff view