summaryrefslogtreecommitdiff
path: root/doCheckout.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-09-04 10:25:09 -0500
committerJeff Carr <[email protected]>2025-09-04 10:25:09 -0500
commit0517f01aa95a251b4bffb49aafa948c77d82e63c (patch)
treec7f8ae586557491767a2d0e986a641710287fc46 /doCheckout.go
parent7697ab186a6af77e4bf08d60ebae53228cbcab60 (diff)
print times for how long merge & checkout take
Diffstat (limited to 'doCheckout.go')
-rw-r--r--doCheckout.go10
1 files changed, 9 insertions, 1 deletions
diff --git a/doCheckout.go b/doCheckout.go
index f24e3fc..0f47d60 100644
--- a/doCheckout.go
+++ b/doCheckout.go
@@ -5,13 +5,21 @@ package main
import (
"fmt"
+ "time"
+
+ "go.wit.com/lib/gui/shell"
+ "go.wit.com/log"
)
// trys to figure out if there is still something to update
func doCheckout() error {
if argv.Checkout.User != nil {
- if err := me.forge.DoAllCheckoutUser(argv.Force); err != nil {
+ start := time.Now()
+ err := me.forge.DoAllCheckoutUser(argv.Force)
+ dur := time.Since(start)
+ log.Printf("Checked out %d user braches in %s\n", me.forge.Repos.Len(), shell.FormatDuration(dur))
+ if err != nil {
badExit(err)
}
okExit("")