1package syncpkg
2
3type InfoResponse struct {
4 HeadChangeID string `json:"head_change_id"`
5 CommitCount int64 `json:"commit_count"`
6 Bookmarks map[string]string `json:"bookmarks"`
7}
8
9type RefUpdateRequest struct {
10 Name string `json:"name"`
11 ExpectedID string `json:"expected_id"`
12 NewID string `json:"new_id"`
13 Force bool `json:"force,omitempty"`
14 ForcePublic bool `json:"force_public,omitempty"`
15}
16
17type RefUpdateResponse struct {
18 OK bool `json:"ok"`
19 Current string `json:"current,omitempty"`
20 Err string `json:"error,omitempty"`
21}