dmitri.shuralyov.com/service/change/...

Add /mock handler for development.

Rearrange services.
dmitshur committed 2 years ago commit 7298e57522a4eea4b583a0ca0daffc154a62cada
gerritapi/gerritapi.go
@@ -150,13 +150,11 @@ func (s service) ListCommits(ctx context.Context, _ string, id uint64) ([]change
 }
 
 func (s service) GetDiff(ctx context.Context, _ string, id uint64, opt *changes.GetDiffOptions) ([]byte, error) {
 	switch opt {
 	case nil:
-		diff, _, err := s.cl.Changes.GetPatch(fmt.Sprint(id), "current", &gerrit.PatchOptions{
-			Path: "src", // TODO.
-		})
+		diff, _, err := s.cl.Changes.GetPatch(fmt.Sprint(id), "current", nil)
 		if err != nil {
 			return nil, err
 		}
 		return []byte(*diff), nil
 	default: