~james/core

core/api/tangled/gittemp2getDiff.go -rw-r--r-- 1.0 KiB
452f17b7 — james chore(import): snapshot james.dad.town/core at f70c71c7696a 15 hours ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
// Code generated by cmd/lexgen (see Makefile's lexgen); DO NOT EDIT.

package tangled

// schema: sh.tangled.git.temp2.getDiff

import (
	"context"

	"github.com/bluesky-social/indigo/lex/util"
)

const (
	GitTemp2GetDiffNSID = "sh.tangled.git.temp2.getDiff"
)

// GitTemp2GetDiff_Output is the output of a sh.tangled.git.temp2.getDiff call.
type GitTemp2GetDiff_Output struct {
	Diffs []*GitDefs_FileDiff `json:"diffs" cborgen:"diffs"`
}

// GitTemp2GetDiff calls the XRPC method "sh.tangled.git.temp2.getDiff".
func GitTemp2GetDiff(ctx context.Context, c util.LexClient, baseCommit string, baseRepo string, headCommit string, headRepo string) (*GitTemp2GetDiff_Output, error) {
	var out GitTemp2GetDiff_Output

	params := map[string]interface{}{}
	params["baseCommit"] = baseCommit
	params["baseRepo"] = baseRepo
	params["headCommit"] = headCommit
	params["headRepo"] = headRepo
	if err := c.LexDo(ctx, util.Query, "", "sh.tangled.git.temp2.getDiff", params, nil, &out); err != nil {
		return nil, err
	}

	return &out, nil
}