From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: vc-git feature proposale: modeline and annotate Date: Thu, 15 Dec 2022 09:53:57 +0200 Message-ID: <83r0x1ksq2.fsf@gnu.org> References: <871qp1sm4n.fsf@mat.ucm.es> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8255"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Uwe Brauer Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Dec 15 08:54:48 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p5j4p-0001u9-4U for ged-emacs-devel@m.gmane-mx.org; Thu, 15 Dec 2022 08:54:47 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p5j46-0004CS-GR; Thu, 15 Dec 2022 02:54:02 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p5j44-0004Bw-M7 for emacs-devel@gnu.org; Thu, 15 Dec 2022 02:54:00 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p5j44-0002N4-2n; Thu, 15 Dec 2022 02:54:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=xAOmqqxsHHV9aiWbILlkRWsXGnErOY4lNj0JkuZ2STk=; b=rUw9tY2nHWx0 D0nTj5QzWNTRUGXvKVOb4dSTLkQR8d+PXgihSMt25R2hrUUaVUCfPyYLvXqaz5Dc8T283gbPEu3DL CjJIKffjVuK0OmLOQSUOF/EcRHik4RZkWxSrMZg92c7aYQoZeCE3sq0Bbmfctyo8dSXoiZt5r7Zj6 gY7Lf2KSog/zlmxMlJ6DIoNAoGCsy/9zbvEDEAPJGkIKS4SpvEJflxEIpqoqLmWh1cCAFAXxD86cm 64ft3PgVA1lrZyQP+h0bEoIitm/rc2h/NxB80Kmn3LfvWkgHZhPU7Hg9JUiGOIPfImsGzwIsHjTXD TiTi96dy0+9mP26OHz2BKQ==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p5j43-0005Ha-Iq; Thu, 15 Dec 2022 02:53:59 -0500 In-Reply-To: <871qp1sm4n.fsf@mat.ucm.es> (message from Uwe Brauer on Wed, 14 Dec 2022 22:36:56 +0100) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:301444 Archived-At: > From: Uwe Brauer > Date: Wed, 14 Dec 2022 22:36:56 +0100 > > I would like to suggest to have, at least optionally, the result > of > (shell-command "git name-rev HEAD") > > In the modeline and/or in the annotation buffer. What prevents you from having that? IOW, why are you posting this here, when you can already customize the heck out your mode lines? > I know that the HASH is more reliable but I find the result of the above > command sometimes a convenient alternative. We currently show the branch, but not the commit. So what you want is to have the "HEAD" thingy to be on the mode line, literally? Since that is almost always true, why is that addition useful?