sourcegraph/internal/gitserver/gitdomain
Varun Gandhi 2955bb6cfb
chore: Change errors.HasType to respect multi-errors (#63024)
With this patch, the `errors.HasType` API behaves similar to `Is` and `As`,
where it checks the full error tree instead of just checking a linearized version
of it, as cockroachdb/errors's `HasType` implementation does not respect
multi-errors.

As a consequence, a bunch of relationships between HasType and Is/As that
you'd intuitively expect to hold are now true; see changes to `invariants_test.go`.
2024-06-06 13:02:14 +00:00
..
BUILD.bazel gitserver: Add CommitLog API to replace client-side Commits (#62606) 2024-05-21 15:21:58 +02:00
common_test.go gitserver: Implement Stat and ReadDir in gRPC API (#62107) 2024-05-11 00:58:28 +02:00
common.go gitserver: grpc: relax BlameAuthor name field to allow arbitrary byte sequences (#62917) 2024-05-29 02:18:42 -07:00
date_test.go gitserver: Add CommitLog API to replace client-side Commits (#62606) 2024-05-21 15:21:58 +02:00
date.go gitserver: Add CommitLog API to replace client-side Commits (#62606) 2024-05-21 15:21:58 +02:00
errors.go chore: Change errors.HasType to respect multi-errors (#63024) 2024-06-06 13:02:14 +00:00
log_test.go Gitserver: add StatusTypeChanged to supported statuses in ChangedFiles (#62548) 2024-05-09 10:43:34 -04:00
log.go rockskip: Replace second long-running process with gRPC API (#62734) 2024-05-21 17:45:27 +02:00