text: add .gitattributes (fixes windows build)

Fixes #9281

Change-Id: If3aad25a9bc24f04d604a534bef4f2e08ce00ffc
Reviewed-on: https://go-review.googlesource.com/2070
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>