"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
Christian Weisgerber <naddy@mips.inka.de>
Subject:
Optimized branch switching?
To:
gameoftrees@openbsd.org
Date:
Sat, 10 Sep 2022 22:39:47 +0200

Download raw body.

Thread
Look at this:

$ got br
local
$ got log -l1
-----------------------------------------------
commit ec5b7def698dac3e452acf7d56900e891c0f47e7 (local, master, origin/master)
from: ajacoutot <ajacoutot@openbsd.org>
date: Sat Sep 10 17:40:52 2022 UTC
 
 Update to awscli-1.25.71.
 
$ time got up -b master
Switching work tree from refs/heads/local to refs/heads/master
Already up-to-date
    0m21.18s real     0m04.48s user     0m09.00s system

Given that the tip of the branch we're switching from is identical
to the one we're switching to, shouldn't this be faster?  Like,
almost a nop?

-- 
Christian "naddy" Weisgerber                          naddy@mips.inka.de