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

From:
Christian Weisgerber <naddy@mips.inka.de>
Subject:
Re: make got fetch default to work tree's current branch
To:
gameoftrees@openbsd.org
Date:
Wed, 1 Feb 2023 21:04:49 +0100

Download raw body.

Thread
Mark Jamsek:

> I thought I'd check the recent todo updates before zzz and noticed
> stsp's new 'got fetch' item. I'm not entirely sure, but it seems to be
> as simple as this: if in a work tree and -b is not specified, make the
> work tree's current branch the wanted branch.

- If invoked in a work tree, got fetch could default to fetching the work
  tree's current branch, instead of fetching the remote repository's HEAD.

I'm confused.  Currently, when I run fetch in a work tree, it fetches
_all_ branches:

$ got fetch
Connecting to "origin" ssh://anongit@git.freebsd.org/src.git
server: Enumerating objects: 5148, done.
server: Counting objects: 100% (2293/2293), done.
server: Compressing objects: 100% (1398/1398), done.
server: Total 5148 (delta 1278), reused 895 (delta 895), pack-reused 2855
8979K fetched; indexing 100%; resolving deltas 100%
Fetched 84d8baafe2eb150f33ce428ffca8cd6eabfa04c8.pack
Updated refs/remotes/origin/main: 575e48f1c4eb05fe8df6aaeb5f55e17c63a02639
Updated refs/remotes/origin/stable/12: b2ffd03bbb3e9cfb0cb9a6995a0e23351d2004fb
Updated refs/remotes/origin/stable/13: b5c8243d6a985214aafb951bda7606fc64e7a3a9
Updated refs/remotes/origin/vendor/Juniper/libxo: 7087c8de43b0d5d27c52da6ba2ba4957b7e336ff
Updated refs/remotes/origin/vendor/NetBSD/bmake: 2e36ab236364fa38c564f586c46cb9182ce8fd14
Updated refs/remotes/origin/vendor/bc: 1a63323d17fedb05b6962853e821c9d7c6b9853e
Updated refs/remotes/origin/vendor/openzfs/master: 9cd71c8604d52def22ffaddc35755712f0fb9349
Updated refs/remotes/origin/vendor/openzfs/zfs-2.1-release: 92e0d9d183ce6752cd52f7277c8321d81df9ffee
Updated refs/remotes/origin/vendor/tcsh: 143ef44f06822f82a8358d4c02f07102d963fe5f
Created reference refs/tags/vendor/Juniper/libxo/1.6.0: b22ad2f0b0f193849b187bb5590ab1ed30def68e
Created reference refs/tags/vendor/NetBSD/bmake/20230126: 3453eec87be2d0ce323f68a979163bb7828f5286
Created reference refs/tags/vendor/tcsh/6.24.07: 4bdd0c527588671ae167e8bdb743781a5f86af53

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