From nobody Wed May 7 10:58:55 2025 X-Original-To: freebsd-git@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4ZsshL39c2z5w7Sq for ; Wed, 07 May 2025 10:58:58 +0000 (UTC) (envelope-from des@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4ZsshL2P8cz47cw; Wed, 07 May 2025 10:58:58 +0000 (UTC) (envelope-from des@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1746615538; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9l7lokvRe9zg525YpHLL5eS7Ew83YkYBwVG5KhN9oSc=; b=s/MyfzmYNCgg5gvG1SYH9h5HOVIVci7ddatmxfPhlB15TQOWgBWcG581uFCTyMOY65Te2l zgoNgvoTlt5teOF5HkppIbDGHO96od6iy83r5FpR1XawL5wCACNubxirRP6OWbKmsjL6G1 q9XEuMs9xBjjZdwTQfURoGR49PMoxPDOKPAJA+ZY87r2yZITapp5KAvgD11xFG/JJe7HWw T0yJtd7CH+GS7Ag+hBUKthvOYtHdsuDH1805XJ4k57YpXho2CDYtNinkeyxSwzlrRN7l+q Ww699uEkYEihzHq5P0b6Jq7en1nsNGiW/409oFte+bvXQQAJCQR/bmdj6+JZgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1746615538; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9l7lokvRe9zg525YpHLL5eS7Ew83YkYBwVG5KhN9oSc=; b=SWIP7JjFGAzANf1HtZnn7Mk/0c82Jt1tKBsfTI1bf4ILEYMEET5hif1PWyKlCDD55bpleG kFLuBcP5K7R4mg7B5x7rD63jcZDX+jR140tWmL2l/kT5ZFP6JkghgxHuOVBjxCXIAPTU5X bTqkmz/PkIZF1bQTlTkVrt5CTcJltFF72JL1UcPf1hrEJUwvlooDNH4Tmsf98ann92g7JO j/HqStygdaEYR0B1aHDMf4B4jdILdSnSAv9R2Ru4aPMs5fqaVZgIiDDw7MqMY0NqK3/XDy WZU500B72qvqwxxf6siAEXmNoSOu2vTvzhuPkBBlfzF9iuofeTqOn6VSBBbRdA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1746615538; a=rsa-sha256; cv=none; b=yiDqXjWmiC21BtiBGwlIdYFciscSwwPhSu8VNjJy0OOEFHWUgFgtT4NWi9nO5KtXNPiUdi /58OAR8WSrDuvWpZIPdyfbBFKmEhgrnA+gB3WBAymPKtCS94cXdAUcQ5pg2+KMbV17JrYN mn943hQG06Bak4d89mQjMycEQniVMD1C0Kp6HDn99u7wG1bYEN4S3ClEt2ZtXE6a43n30w PwmSBdvkXt+jyQVjLtGvH5O2jOFDQmR/QeieUelEZOjDgxX0SxkmJgR8Co09ESU6Y5Vn2M AYHm1m/NMit98Sfm08ifM8Fx9GzMQLG/p/dobAZJWG38syVrXtr37j1Lar1a4g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from ltc.des.dev (88-177-82-251.subs.proxad.net [88.177.82.251]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: des) by smtp.freebsd.org (Postfix) with ESMTPSA id 4ZsshL143Rz3vx; Wed, 07 May 2025 10:58:58 +0000 (UTC) (envelope-from des@freebsd.org) Received: by ltc.des.dev (Postfix, from userid 1001) id A3D0C14FD41; Wed, 07 May 2025 12:58:55 +0200 (CEST) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Olivier Certner Cc: Kyle Evans , freebsd-git@freebsd.org Subject: Re: got(1) in base consideration In-Reply-To: <2029663.vslOlgHxSZ@ravel> (Olivier Certner's message of "Tue, 06 May 2025 10:36:01 +0200") References: <9f48a955-5f8a-450c-94c1-2a7d9d69ecb9@FreeBSD.org> <2029663.vslOlgHxSZ@ravel> User-Agent: Gnus/5.13 (Gnus v5.13) Date: Wed, 07 May 2025 12:58:55 +0200 Message-ID: <86plgku1ow.fsf@ltc.des.dev> List-Id: Discussion of git use in the FreeBSD project List-Archive: https://lists.freebsd.org/archives/freebsd-git List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-git@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Olivier Certner writes: > I've never used 'got' so far, but is it impossible to just checkout > the bare repository without creating any worktrees? I've never used got either, but you should be aware that in git terminology, =E2=80=9Cbare=E2=80=9D refers to a clone that only has the obj= ect store, without what we'd call a working copy in cvs or svn terminology. A normal clone has the object store in .git, plus a checked-out (and possibly modified) copy of a tree, plus a (possibly empty) index (everything you've `git add`ed but not yet committed). Worktrees are _additional_ checked-out trees which don't have a full copy of the object store; instead of a .git directory, they have a .git file which contains the absolute path to the directory within the main clone's .git directory that contains the worktree's metadata. (The core aka =E2=80=9Cplumbing=E2=80=9D of git is nothing more than an obj= ect store where each object is referenced by its sha1 hash. VCS functionality is implemented entirely in the UI aka =E2=80=9Cporcelain=E2=80=9D. In that co= ntext, most objects represent one particular version of one particular file; some objects are trees which map paths to file objects; yet other objects are commits which associate a tree with metadata such as author, committer, log message etc. and zero, one, or two references to previous revisions from which this one is derived. A branch is just a reference to the object representing its most recent commit; it serves no other purpose than user-friendly naming and preventing that commit, and all of its ancestors, from being garbage-collected. A tag is the same as a branch except that the porcelain won't let you commit to a tag.) DES --=20 Dag-Erling Sm=C3=B8rgrav - des@FreeBSD.org