feat(server): revision authors, revisions after a seq, online machines
This commit is contained in:
1 parent
91d83f3032
commit
c2e9284a63
6 files changed
+299
-15
No files matched your search
@@ -265,7 +265,11 @@ func showLog(ctx context.Context, cfg *client.Config, path string, asJSON bool)
|
||||
return output(asJSON, revisions, func() {
|
||||
for _, rev := range revisions {
|
||||
when := time.UnixMilli(rev.Time).Format("2006-01-02 15:04")
|
||||
fmt.Printf("%d %s %s %s@%.10s\n", rev.Seq, when, rev.Machine, rev.MainBranch, rev.MainSHA)
|
||||
who := rev.Machine
|
||||
if rev.Author != "" {
|
||||
who = rev.Author + " via " + rev.Machine
|
||||
}
|
||||
fmt.Printf("%d %s %s %s@%.10s\n", rev.Seq, when, who, rev.MainBranch, rev.MainSHA)
|
||||
for _, change := range rev.Changes {
|
||||
action := "M"
|
||||
if change.Base == "" {
|
||||
|
||||
Reference in new issue
Block a user