summaryrefslogtreecommitdiff
path: root/doCheckout.go
diff options
context:
space:
mode:
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("")