Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions protocol/wire/frame.go
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,13 @@ type Event struct {

func (Event) RespType() string { return "event" }

// GitFileStatus is one porcelain-v2 entry; Staged/Unstaged are XY status codes.
type GitFileStatus struct {
Path string `json:"path"`
Staged string `json:"staged"`
Unstaged string `json:"unstaged"`
}

// GitStatusResult answers GitStatus.
type GitStatusResult struct {
Branch string `json:"branch"`
Expand All @@ -628,13 +635,6 @@ type GitStatusResult struct {

func (GitStatusResult) RespType() string { return "git_status_result" }

// GitFileStatus is one porcelain-v2 entry; Staged/Unstaged are XY status codes.
type GitFileStatus struct {
Path string `json:"path"`
Staged string `json:"staged"`
Unstaged string `json:"unstaged"`
}

// GitCommitResult answers GitCommit with the new commit hash.
type GitCommitResult struct {
Hash string `json:"hash"`
Expand Down