Repository.xs: tree parameter to diff() may be undefined

It should be valid to set ```tree``` to ```undefined```.