From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: How to switch Git branches with VC? Date: Wed, 19 Nov 2014 20:39:54 +0200 Message-ID: <831toz826d.fsf@gnu.org> References: <83mw7oa3up.fsf@gnu.org> <86h9xwnww0.fsf@yandex.ru> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1416422421 12952 80.91.229.3 (19 Nov 2014 18:40:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 19 Nov 2014 18:40:21 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 19 19:40:12 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 1XrAAm-0004KM-6u for ged-emacs-devel@m.gmane.org; Wed, 19 Nov 2014 19:40:12 +0100 Original-Received: from localhost ([::1]:60162 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrAAl-0001Hy-Qp for ged-emacs-devel@m.gmane.org; Wed, 19 Nov 2014 13:40:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46805) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrAAe-0001ES-N5 for emacs-devel@gnu.org; Wed, 19 Nov 2014 13:40:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XrAAZ-0001bm-DJ for emacs-devel@gnu.org; Wed, 19 Nov 2014 13:40:04 -0500 Original-Received: from mtaout29.012.net.il ([80.179.55.185]:59951) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrAAZ-0001bN-5o for emacs-devel@gnu.org; Wed, 19 Nov 2014 13:39:59 -0500 Original-Received: from conversion-daemon.mtaout29.012.net.il by mtaout29.012.net.il (HyperSendmail v2007.08) id <0NFA00A00U24DP00@mtaout29.012.net.il> for emacs-devel@gnu.org; Wed, 19 Nov 2014 20:38:06 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout29.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NFA00BU5UFI7U00@mtaout29.012.net.il>; Wed, 19 Nov 2014 20:38:06 +0200 (IST) In-reply-to: <86h9xwnww0.fsf@yandex.ru> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.185 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:177801 Archived-At: > From: Dmitry Gutov > Cc: emacs-devel@gnu.org > Date: Tue, 18 Nov 2014 21:15:11 +0200 > > Eli Zaretskii writes: > > > It sounds like there's no command (except M-!) to do that. > > `C-x v r' works okay for this, at least with vc-git. Thanks. Talk about obfuscation: a command that's called "retrieve-tag" doesn't retrieve anything and is normally unrelated to tags! I pushed to the emacs-24 branch some documentation changes that should serve as stopgap. But I really think we should have a set of VC commands that deal with branches: create them, switch to them, remove them, etc. That the command to switch to a branch and to an arbitrary commit or tag is the same with some VCSes is sheer luck: other VCSes don't fit in this scheme, and require different commands and different options for them.