-
Notifications
You must be signed in to change notification settings - Fork 11
/
entity.go
36 lines (31 loc) · 889 Bytes
/
entity.go
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
package vcs
import (
"time"
)
type GitOptions struct {
checkout []GitCheckoutOption
}
type GitRef struct {
Type string `json:"type"`
Name string `json:"name"`
FullName string `json:"full_name"`
Hash string `json:"hash"`
Timestamp time.Time `json:"timestamp"`
}
type GitLog struct {
Hash string `json:"hash"`
Msg string `json:"msg"`
AuthorName string `json:"author_name"`
AuthorEmail string `json:"author_email"`
Timestamp time.Time `json:"timestamp"`
Refs []GitRef `json:"refs"`
}
type GitFileStatus struct {
Path string `json:"path"`
Name string `json:"name"`
IsDir bool `json:"is_dir"`
Staging string `json:"staging"`
Worktree string `json:"worktree"`
Extra string `json:"extra"`
Children []GitFileStatus `json:"children"`
}