From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Enge Subject: Re: Version strings for VCS snapshots Date: Thu, 24 Sep 2015 10:11:39 +0200 Message-ID: <20150924081138.GA7224@debian> References: <8761377ct3.fsf@elephly.net> <20150919121718.1eeccc11@openmailbox.org> <87twqpkq8r.fsf_-_@gnu.org> <87si64u2sy.fsf@netris.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49032) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zf1ib-00010u-T7 for guix-devel@gnu.org; Thu, 24 Sep 2015 04:17:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zf1ia-00014D-W5 for guix-devel@gnu.org; Thu, 24 Sep 2015 04:17:29 -0400 Content-Disposition: inline In-Reply-To: <87si64u2sy.fsf@netris.org> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Mark H Weaver Cc: guix-devel On Wed, Sep 23, 2015 at 07:35:41PM -0400, Mark H Weaver wrote: > I'd like to propose another alternative, which I used for 'grub' on the > 'wip-loongson2f' branch. There, the version string is simply the output > of "git describe". This gives us lexicographic ordering, and the commit > id can be extracted with (last (string-split version #\g)). This looks like the perfect solution to me. Andreas