Skip to content

Commit b2d912b

Browse files
committed
kai 0.11.4: push ref meta (git info, file counts) to server for history page
1 parent edc1686 commit b2d912b

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

kai-cli/cmd/kai/main.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const (
7070
)
7171

7272
// Version is the current kai CLI version
73-
var Version = "0.11.3"
73+
var Version = "0.11.4"
7474

7575
// verbose enables debug output when --verbose/-v flag or KAI_VERBOSE env var is set
7676
var verbose bool
@@ -14132,6 +14132,7 @@ func runPush(cmd *cobra.Command, args []string) error {
1413214132
Old: oldTarget,
1413314133
New: r.TargetID,
1413414134
Force: pushForce,
14135+
Meta: r.Meta,
1413514136
})
1413614137
}
1413714138

kai-cli/internal/remote/client.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,11 @@ type RefUpdateResponse struct {
166166

167167
// BatchRefUpdate represents a single ref update in a batch.
168168
type BatchRefUpdate struct {
169-
Name string `json:"name"`
170-
Old []byte `json:"old,omitempty"`
171-
New []byte `json:"new"`
172-
Force bool `json:"force,omitempty"`
169+
Name string `json:"name"`
170+
Old []byte `json:"old,omitempty"`
171+
New []byte `json:"new"`
172+
Force bool `json:"force,omitempty"`
173+
Meta map[string]string `json:"meta,omitempty"`
173174
}
174175

175176
// BatchRefUpdateRequest updates multiple refs atomically.

0 commit comments

Comments
 (0)