All of the above manipulation of flags should be updated to preserve the high-order bits that control whitespace, etc.

The `opts->flags = 0` can just be removed, since you know that `opts->flags & GIT_DIFF_FIND_ALL` is zero from the entry condition to this section of code.

The other two can just get `opts->flags |= ...` to mix in the new flag settings.