From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, NICE_REPLY_A,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 22649 invoked from network); 10 Jun 2022 16:05:56 -0000 Received: from 9front.inri.net (168.235.81.73) by inbox.vuxu.org with ESMTPUTF8; 10 Jun 2022 16:05:56 -0000 Received: from mail.posixcafe.org ([45.76.19.58]) by 9front; Fri Jun 10 12:03:55 -0400 2022 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=posixcafe.org; s=20200506; t=1654877031; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=iU16T7c0pwcuI+w5BTf93giaI9Goi8tiOd6JMz5RIJs=; b=mUqttJANJaAwcXYYql49reavBS4lFu6IZWXvJU9wV5MbVtK0V5RhxTABI4/kRI9o3ac0HN CSh1hC9Mt8BTvri85GVwpv7d+dyCzRJJGKItZ1y0v7uxPEPlH7PWMZhBfaPKxLqn9vAZyD QKpAoQshadEywDzpOz2qF3iub8V+ISI= Received: from [192.168.168.200] (161-97-228-135.lpcnextlight.net [161.97.228.135]) by mail.posixcafe.org (OpenSMTPD) with ESMTPSA id 18a8ce32 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for <9front@9front.org>; Fri, 10 Jun 2022 11:03:51 -0500 (CDT) Message-ID: Date: Fri, 10 Jun 2022 10:03:10 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Content-Language: en-US To: 9front@9front.org References: <546AB7A189C97E6865B97D7342EB6B66@eigenstate.org> From: Jacob Moody In-Reply-To: <546AB7A189C97E6865B97D7342EB6B66@eigenstate.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: webscale service Subject: Re: [9front] [PATCH] embed git head hash as /dev/head Reply-To: 9front@9front.org Precedence: bulk On 6/10/22 08:07, ori@eigenstate.org wrote: > Quoth Jacob Moody : >> This embeds the current commit hash for HEAD >> in to devcons as /dev/head. Thought this could be >> handy, curious to hear what others think. >> > > not a fan. Fair enough, but I did want to talk a bit about what the use case for this is. > > usually, my kernels have some uncommitted local patches, > and are sometimes built outside of /sys/src I am going to go out on a limb here and say that a majority of users don't have uncommitted local patches to the kernel. I view this mostly as something that could assist it debugging, a lot easier to know what code someone has running in their kernel if you know what the base commit was at least. I've run in to a number of users that were unaware of needing to update their kernels. This gives a concrete answer of 'how out of date is the kernel'. But this is all fluff, just thought it might prove useful. > also, it feels overfit to git. Wasn't aware we shipped with other version control software :P. Some improvements that could be made to this: * We could check for a local .git and use that over the one in /dist if found * We could record the tidiness of the tree, perhaps either through a 'dity' suffix to the hash and/or just embedding the entire code diff itself. But I wont invest more time in to this if people don't like the idea. Thanks, moody