File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ type RepoInfo struct {
16
16
Path string
17
17
Dir string
18
18
URL string
19
- // LastCID value
20
- LastCID string
21
- Branch string
22
- Version string
19
+ // LastHash last commit hash value
20
+ LastHash string
21
+ Branch string
22
+ Version string
23
23
}
Original file line number Diff line number Diff line change @@ -110,9 +110,9 @@ func (r *Repo) Info() *RepoInfo {
110
110
Dir : r .dir ,
111
111
URL : rt .RawURLOfHTTP (),
112
112
// more
113
- Branch : r .CurBranchName (),
114
- Version : r .LargestTag (),
115
- LastCID : r .LastAbbrevID (),
113
+ Branch : r .CurBranchName (),
114
+ Version : r .LargestTag (),
115
+ LastHash : r .LastAbbrevID (),
116
116
}
117
117
}
118
118
Original file line number Diff line number Diff line change @@ -53,8 +53,8 @@ func TestRepo_AutoMatchTag(t *testing.T) {
53
53
54
54
func TestRepo_BranchInfos (t * testing.T ) {
55
55
bs := repo .BranchInfos ()
56
- // dump.P(bs)
57
56
assert .NotEmpty (t , bs )
57
+ dump .P (bs .BrLines ())
58
58
59
59
assert .NotEmpty (t , repo .BranchInfo ("main" ))
60
60
assert .NotEmpty (t , repo .SearchBranches ("main" , gitw .BrSearchAll ))
You can’t perform that action at this time.
0 commit comments