From owner-freebsd-current@freebsd.org Fri Apr 9 23:16:29 2021 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 774375C28B6; Fri, 9 Apr 2021 23:16:29 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-ot1-x32a.google.com (mail-ot1-x32a.google.com [IPv6:2607:f8b0:4864:20::32a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FHDXX4Q2jz4lcD; Fri, 9 Apr 2021 23:16:27 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: by mail-ot1-x32a.google.com with SMTP id f75-20020a9d03d10000b0290280def9ab76so2155117otf.12; Fri, 09 Apr 2021 16:16:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ZNOJ8TUJ1V3ru6xRHtkc2zQ0X0lHj+8iF7fA1VwqbvQ=; b=UtWSUYAaFvy37F3xeyPEtV7fbp5AkdVpW1EcfD9fpbY6sMsWYspwi+3gbeycFYQq4O coShKJYBkJQC6lEzXw79eVDxco9Is4vfeiE6Ehs8VIWmMgz33s5DgyhteXlJXKW9XP30 khJsbrJZkyux9Xcpke3HqWqalaay3qw9m51bT67j3RmSYoeV3k61592ykOUL/hMpcXue bz0/aRM1hNGo14Kf+HVHpH2egenViIo4DKEgMOiI0GVqHY4nPHXw+ET9UpvE+mhuE3fA 7ng3oaspjpIw+ejWdB1qqMppQniXyWNTz3tVd7/d6aPufUmyVETvCxgOfnU3EJ6t6nTx Vphg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ZNOJ8TUJ1V3ru6xRHtkc2zQ0X0lHj+8iF7fA1VwqbvQ=; b=cIzVkF8+9FqPwdUxRkvW5giiFMO//G5dn3lyBnWx340i3DcUvaaYpE3b4ZPSkAa2ey j9BuFtEMyyshto2XEVlHN15nS9hV6dDEVyUoA8j6B6Bg3inbnukDULVlz+ycG1CEguCe zP3pLO1zHo2hg77Hzg1kfZXt5i9FABXQRqeGh9nEyDLGAtKm7MyNZNn/uyURluT5wK/V F28gvEdQLVuiXZq40VK88UltlBdP+NgeiVEgpu1drrR+HnF4dpe66WB+TQFJa7CEBE4T lTh1egKJsT0qtMR64Umxo7dYHmmtoZqzTMEWTBlnx1kjDuvcSfGvGynREVxjDWKdawtY THNg== X-Gm-Message-State: AOAM532qrdfUqngdLHlJosXF18c6UZkaWnIbPkT3zb9HhYKwQVvlgAq9 Ij7wfqR1nE3e+klOugX48/3jLU5YB+9UYNt891g= X-Google-Smtp-Source: ABdhPJxIgEw1gsuZmx43MRNkLy4gGpe4bL9TiDI3tkQn5rIGdolG23XIg9U9ZF2Oz1uEZSkcSi/2ZtUBHh2wE9jVizw= X-Received: by 2002:a05:6830:1e14:: with SMTP id s20mr14753618otr.199.1618010186398; Fri, 09 Apr 2021 16:16:26 -0700 (PDT) MIME-Version: 1.0 References: <20210228023827.f68e6136d688c0a37206c883@3dresearch.com> <20210228120313.cdb53cab429a38fdf9817d0d@3dresearch.com> <20210301020830.5466d368867bdbc11b0b7648@3dresearch.com> <00517bca-fc1b-fcea-50a2-6469ff922092@gmail.com> In-Reply-To: From: Kevin Oberman Date: Fri, 9 Apr 2021 16:16:09 -0700 Message-ID: Subject: Re: FreeBSD mini-Git Primer To: Graham Perrin Cc: Warner Losh , "freebsd-questions@freebsd.org" , FreeBSD CURRENT X-Rspamd-Queue-Id: 4FHDXX4Q2jz4lcD X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=UtWSUYAa; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of kob6558@gmail.com designates 2607:f8b0:4864:20::32a as permitted sender) smtp.mailfrom=kob6558@gmail.com X-Spamd-Result: default: False [-3.70 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_DN_SOME(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FREEMAIL_TO(0.00)[gmail.com]; FORGED_SENDER(0.30)[rkoberman@gmail.com,kob6558@gmail.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[2607:f8b0:4864:20::32a:from]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[rkoberman@gmail.com,kob6558@gmail.com]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; SPAMHAUS_ZRD(0.00)[2607:f8b0:4864:20::32a:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::32a:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-questions,freebsd-current] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Apr 2021 23:16:29 -0000 The updated mini-Git Primer is now included in the Developer's Handbook. See Chapter 5. I have sent a number of suggestions for some non-technical changes to Warner, but have not heard back yet. Perhaps he didn't care for them. As I am a real novice who has had to destroy my clone of the sources and start over twice, I find it unlikely that i will be of significant use on the technical side for a while. Git is philosophically very different from RCS/CVS/SVN and the different mindset is taking me a while to fully grasp. I will say that specifying a hash that is in main but not part of the branch you are working on is probably a rather poor idea. I probably could have easily fixed it, but I had no luck in finding the right incantation and eventually blew /usr/src away and started over. (How do you fix a detached clone?) I also find net/gitup a marvelous tool for replacing portsnap. In several ways, it is clearly superior and I look forward to seeing it in the base. I mean, what is simpler than: # gitup -c ports (just once to create the initial clone) #gitup ports (to update, perhaps in periodic(8)) Of course, you do need to edit gitup.conf to select the preferred branch and repo site, but it's pretty obvious. -- Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rkoberman@gmail.com PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683 On Thu, Apr 8, 2021 at 1:14 AM Graham Perrin wrote= : > On 02/03/2021 06:33, Graham Perrin wrote: > > Re: Git, shallow clone hashes, commit counts and system/security updates > > > On 02/03/2021 05:42, Kevin Oberman wrote: > > > > Re: Panic after updating from source > > > >> On Mon, Mar 1, 2021 at 6:31 PM Michael Sierchio > >> wrote: > >> > >>> =E2=80=A6 > >> > >> You need to be aware that the shallow clone hash will not include the > >> commit count which will be used in future security updates to make it > >> easy > >> to check whether your system needs to be updated or not. A full clone > >> does > >> require more space, but I was surprised at how little extra space it > >> requires. Warner is updating his git mini-guide to point out this > >> issue. > >> If you run STABLE, it's a really significant concern. You can convert > >> the > >> shallow clone to a full one with "git fetch --unshallow". This will ta= ke > >> some time to run. > >> -- > >> Kevin Oberman, Part time kid herder and retired Network Engineer > >> E-mail: rkoberman@gmail.com > >> PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683 > >> _______________________________________________ > >> freebsd-questions@freebsd.org mailing list > >> https://lists.freebsd.org/mailman/listinfo/freebsd-questions > > > > =E2=80=A6 Thank you, Kevin and Warner. > > > > I see the FreeBSD mini-Git Primer in the November/December 2020 edition > of the FreeBSD Journal > > (and the review copy that was publicised in September 2020). > > For news of a future edition, if any, should I simply watch > ? > > Thanks > > (I have another question about deep and shallow =E2=80=A6 I'll post separ= ately > to freebsd-questions =E2=80=A6) > >