From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nikolaus Rath Newsgroups: gmane.emacs.devel Subject: Re: On the popularity of git [Was: Git question: when using branches, how does git treat working files when changing branches?] Date: Tue, 03 Nov 2015 09:38:58 -0800 Message-ID: <87d1vrrnil.fsf@thinkpad.rath.org> References: <20151028192017.GC2538@acm.fritz.box> <87k2q6wy8p.fsf@linaro.org> <20151028223252.GD2538@acm.fritz.box> <87vb9qd2h4.fsf@wanadoo.es> <20151028235340.GE2538@acm.fritz.box> <87ziz213wx.fsf@fencepost.gnu.org> <20151029123554.GB2510@acm.fritz.box> <87h9l995ec.fsf@fencepost.gnu.org> <20151029170237.GF2510@acm.fritz.box> <22068.12941.199944.979963@turnbull.sk.tsukuba.ac.jp> <83611nzbqr.fsf@gnu.org> <87twp72psx.fsf@fencepost.gnu.org> <87fv0ojc2q.fsf@thinkpad.rath.org> <87pozrzd66.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1446572362 22975 80.91.229.3 (3 Nov 2015 17:39:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 Nov 2015 17:39:22 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 03 18:39:12 2015 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 1ZtfY6-00088w-DR for ged-emacs-devel@m.gmane.org; Tue, 03 Nov 2015 18:39:10 +0100 Original-Received: from localhost ([::1]:50164 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZtfY5-0000Wh-QO for ged-emacs-devel@m.gmane.org; Tue, 03 Nov 2015 12:39:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48000) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZtfY1-0000WM-67 for emacs-devel@gnu.org; Tue, 03 Nov 2015 12:39:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZtfXy-0002WB-FI for emacs-devel@gnu.org; Tue, 03 Nov 2015 12:39:05 -0500 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:44668) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZtfXy-0002VQ-CJ for emacs-devel@gnu.org; Tue, 03 Nov 2015 12:39:02 -0500 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.nyi.internal (Postfix) with ESMTP id 1588920C91 for ; Tue, 3 Nov 2015 12:39:00 -0500 (EST) Original-Received: from frontend1 ([10.202.2.160]) by compute2.internal (MEProxy); Tue, 03 Nov 2015 12:39:00 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=fKRvt/gBByuimZD KAZ0gJzLnRC8=; b=lXlZaYSu0AToAOeBt69px1N9QmNgYYTkiP72x143nOavW5f waWrKcGmKAV8MsIcK7wHcur/P4LbdIbo0pv59zjZ6RF9FT9C8p+CLePVXlgZK5c/ 0HGmlk9LpoqC/s4OaP+ovtRS15v2WHYzkKlGnzZPfnN7MB6UtH3EukvTI+vA= X-Sasl-enc: tQHk7JJKvRzeJTrBYINf0UHnSy1pccw2E6A6+wyts4zV 1446572339 Original-Received: from ebox.rath.org (ebox.rath.org [45.79.69.51]) by mail.messagingengine.com (Postfix) with ESMTPA id AC988C016D5 for ; Tue, 3 Nov 2015 12:38:59 -0500 (EST) Original-Received: from thinkpad.rath.org (thinkpad [192.168.12.2]) by ebox.rath.org (Postfix) with ESMTPS id EACFEF12FF for ; Tue, 3 Nov 2015 17:38:58 +0000 (UTC) Original-Received: by thinkpad.rath.org (Postfix, from userid 1000) id A9F08C319F; Tue, 3 Nov 2015 09:38:58 -0800 (PST) Mail-Copies-To: never Mail-Followup-To: emacs-devel@gnu.org In-Reply-To: <87pozrzd66.fsf@fencepost.gnu.org> (David Kastrup's message of "Tue, 03 Nov 2015 09:42:57 +0100") User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/24.4 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.111.4.25 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:193164 Archived-At: On Nov 03 2015, David Kastrup wrote: > Nikolaus Rath writes: > >> On Oct 31 2015, David Kastrup wrote: >>> Eli Zaretskii writes: >>> >>>> More generally, Git's main problem is that it breaks almost every >>>> human habit gained with the other VCSes: instead of an easily >>>> remembered numerical version IDs you have those inhuman hashes >>> >>> Shrug. In a distributed version control system, numerical version IDs >>> don't make sense. >> >> They make a lot of sense if you don't require them to be constant over >> time. Mercurial solves this beautifully. It has hashes if you need to >> constant identifier, but if you just want to refer to the commit that >> got printed/created/referred to by the command you typed 30 seconds ago, >> you can use its handy numerical id. > > HEAD~2 works just fine in Git. So does "HEAD@{30 seconds ago}" though [...] Head-relative references are useful, but no substitute for short numeric id's of *arbitrary* commits. # Find first commit after the release following commit 372 $ hg log -r 'limit(sort(descendants(372) and tag("re:^release-"), "date"), = 2)' # ..and show what was changed: $ hg diff -c 410 Best,s -Nikolau --=20 GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F =C2=BBTime flies like an arrow, fruit flies like a Banana.=C2= =AB