[mike@mwxm4]

This commit is contained in:
2026-07-28 15:25:54 +02:00
parent 1e3ae9a4c7
commit 113527f220
14 changed files with 60 additions and 57 deletions
+6 -6
View File
@@ -282,7 +282,7 @@ func runCommandDepth(line string, depth int) bool {
if pat != "" {
what = "no " + many + " matching '" + word(words, 1) + "'"
}
fmt.Println(col(cGray, what))
fmt.Println(col(cDark, what))
break
}
// no size column when the server gave no usable sizes, rather than a
@@ -296,7 +296,7 @@ func runCommandDepth(line string, depth int) bool {
if total > 0 {
summary += " · " + humanSize(total)
}
fmt.Println(col(cGray, summary))
fmt.Println(col(cDark, summary))
case "show": // show a repository's log directly on the server
prj := PRJ
@@ -610,7 +610,7 @@ func runCommandDepth(line string, depth int) bool {
default: // unknown command — no longer forwarded to the shell
fmt.Println(col(cRed, "unknown command: "+words[0]) +
col(cGray, " (prefix with '!' to run a shell command)"))
col(cDark, " (prefix with '!' to run a shell command)"))
}
return true
@@ -671,9 +671,9 @@ func formatLog(lines []string, now time.Time) string {
n++
}
fmt.Fprintf(&full, "%s %s %s\n", col(cPurple, hash), col(cYellow, z), subj)
fmt.Fprintf(&short, "%s %s %s\n", col(cPurple, hash), col(cYellow, zs), subj)
fmt.Fprintf(&tiny, "%s %s %s\n", col(cPurple, hash), col(cYellow, zss), subj)
fmt.Fprintf(&full, "%s %s %s\n", col(cViolet, hash), col(cYellow, z), subj)
fmt.Fprintf(&short, "%s %s %s\n", col(cViolet, hash), col(cYellow, zs), subj)
fmt.Fprintf(&tiny, "%s %s %s\n", col(cViolet, hash), col(cYellow, zss), subj)
}
switch {