From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Referring to revisions in the git future. Date: Sat, 01 Nov 2014 13:49:21 +0100 Message-ID: <87bnor2ii6.fsf@fencepost.gnu.org> References: <87tx2m2pw8.fsf@uwakimon.sk.tsukuba.ac.jp> <87sii43u15.fsf@fencepost.gnu.org> <877fzf3dr2.fsf@uwakimon.sk.tsukuba.ac.jp> <87oasrl7sn.fsf@thinkpad-t440p.tsdh.org> <87k33f4ay9.fsf@fencepost.gnu.org> <20141101094604.GA3020@acm.acm> <874muj43j8.fsf@fencepost.gnu.org> <20141101112928.GC3020@acm.acm> <87fve32kx2.fsf@fencepost.gnu.org> <20141101122910.GE3020@acm.acm> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1414846177 11622 80.91.229.3 (1 Nov 2014 12:49:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 1 Nov 2014 12:49:37 +0000 (UTC) Cc: "Stephen J. Turnbull" , emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Nov 01 13:49:31 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XkY7T-0007jX-Cy for ged-emacs-devel@m.gmane.org; Sat, 01 Nov 2014 13:49:27 +0100 Original-Received: from localhost ([::1]:52416 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkY7T-0007Wd-2y for ged-emacs-devel@m.gmane.org; Sat, 01 Nov 2014 08:49:27 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49581) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkY7P-0007WQ-Io for emacs-devel@gnu.org; Sat, 01 Nov 2014 08:49:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XkY7O-00057p-Ah for emacs-devel@gnu.org; Sat, 01 Nov 2014 08:49:23 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50566) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkY7O-00057l-7O for emacs-devel@gnu.org; Sat, 01 Nov 2014 08:49:22 -0400 Original-Received: from localhost ([127.0.0.1]:57742 helo=lola) by fencepost.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkY7N-0005C2-MT; Sat, 01 Nov 2014 08:49:21 -0400 Original-Received: by lola (Postfix, from userid 1000) id 2249DDF3E5; Sat, 1 Nov 2014 13:49:21 +0100 (CET) In-Reply-To: <20141101122910.GE3020@acm.acm> (Alan Mackenzie's message of "Sat, 1 Nov 2014 12:29:10 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:176212 Archived-At: Alan Mackenzie writes: > Hello, David. > > On Sat, Nov 01, 2014 at 12:57:13PM +0100, David Kastrup wrote: >> Alan Mackenzie writes: > >> > Yes, that sounds like an excellent reason for using hashes. But for many >> > uses, a revision number is better. bzr has them both. git doesn't. > >> Git has "git describe" for getting a sequence-based decription. It's >> used for informal version numbers, like for a self-compiled git as >> opposed to an official release: > >> dak@lola:/usr/local/tmp/lilypond$ git --version >> git version 1.9.1 >> dak@lola:/usr/local/tmp/lilypond$ ../git/git --version >> git version 2.1.0.rc2.3.g67de23d.dirty >> dak@lola:/usr/local/tmp/lilypond$ cd ../git >> dak@lola:/usr/local/tmp/git$ git describe >> v2.1.0-rc2-3-g67de23d > > Maybe I'm blind, but I can't see anything like a sequential version > number in that string. It's the 3. The tag v2.1.0-rc2 occured 3 commits before the named one: * commit 67de23ddb1ed5471e302f6a84fae7a9037a0d980 (HEAD, master) |\ Merge: f82887f 09898e7 | | Author: Junio C Hamano | | Date: Sun Aug 10 11:03:03 2014 -0700 | | | | Merge branch 'master' of git://ozlabs.org/~paulus/gitk | | | | * 'master' of git://ozlabs.org/~paulus/gitk: | | gitk: Updated Bulgarian translation (302t,0f,0u) | | gitk: Add keybinding to switch to parent commit | | | * commit 09898e7c3b040086e8addd4ef226548c9dce1460 | | Author: Alexander Shopov | | Date: Sun Aug 3 15:36:43 2014 +0300 | | | | gitk: Updated Bulgarian translation (302t,0f,0u) | | | | Signed-off-by: Alexander Shopov | | Signed-off-by: Paul Mackerras | | | * commit d4ec30b24a8ad076771064ac71dbe5420512cc30 | | Author: Max Kirillov | | Date: Tue Jul 8 23:45:35 2014 +0300 | | | | gitk: Add keybinding to switch to parent commit | | | | Signed-off-by: Max Kirillov | | Signed-off-by: Paul Mackerras | | * | commit f82887f29010e1ec88ec1930a99ddc56b6438452 (tag: v2.1.0-rc2) | | Author: Junio C Hamano | | Date: Fri Aug 8 13:52:16 2014 -0700 | | | | Git 2.1-rc2 | | | | Signed-off-by: Junio C Hamano >> Nobody uses it in Email communication because there are no sufficient >> upsides to it. > > Is it of any use for anything? Can you use it as input to a git > command, for example? You can, but git just skims off the g67de23d as far as I can tell and uses that. >> I am not really interested in continuing this silliness since it is >> totally irrelevant, anyway. If you want to change Git's operation >> and nomenclature, feel free to make your point on the Git developer >> list and tell everybody there they are doing it all wrong. > > I've never been anywhere near that list, but I'd be willing to bet an > awful lot of money that this point has been raised many times on that > list, each time being dismissively dismissed with religious fervour. The irony, the irony. > There are certainly workarounds for the lack of version numbers in > git, as you and others have pointed out. I expect their necessity > will bring me to hate the program. Such is life. I have no doubt that you'll be able to indulge your preconceptions. -- David Kastrup