From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Harald Hanche-Olsen Newsgroups: gmane.emacs.devel Subject: Re: git question: how do I get a specific git version into my working directory? Date: Sat, 18 Apr 2015 19:44:34 +0200 Message-ID: <55329802.1000307@math.ntnu.no> References: <20150418103301.GB4182@acm.fritz.box> <86sibx7hos.fsf@dod.no> <83twwd7gl9.fsf@gnu.org> <20150418131607.GD4182@acm.fritz.box> <83sibx7e2a.fsf@gnu.org> <55326530.3060304@math.ntnu.no> <83pp717b0r.fsf@gnu.org> <838udp72yq.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1429379096 20412 80.91.229.3 (18 Apr 2015 17:44:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 18 Apr 2015 17:44:56 +0000 (UTC) Cc: acm@muc.de, Stefan Monnier , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Apr 18 19:44:55 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 1YjWnX-0007TB-18 for ged-emacs-devel@m.gmane.org; Sat, 18 Apr 2015 19:44:55 +0200 Original-Received: from localhost ([::1]:46415 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YjWnW-0006ee-Fi for ged-emacs-devel@m.gmane.org; Sat, 18 Apr 2015 13:44:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34596) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YjWnL-0006eO-0b for emacs-devel@gnu.org; Sat, 18 Apr 2015 13:44:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YjWnK-0003M2-5j for emacs-devel@gnu.org; Sat, 18 Apr 2015 13:44:42 -0400 Original-Received: from hylle05.itea.ntnu.no ([2001:700:300:3::225]:35358) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YjWnI-0003Hy-MD; Sat, 18 Apr 2015 13:44:40 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by hylle05.itea.ntnu.no (Postfix) with ESMTP id 51B6190DDBE; Sat, 18 Apr 2015 19:44:37 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at hylle05.itea.ntnu.no Original-Received: from [IPv6:2001:700:300:1470:31c5:898f:a437:f426] (unknown [IPv6:2001:700:300:1470:31c5:898f:a437:f426]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: hanche) by hylle05.itea.ntnu.no (Postfix) with ESMTPSA id 2C9D490DDBC; Sat, 18 Apr 2015 19:44:35 +0200 (CEST) User-Agent: Postbox 3.0.11 (Macintosh/20140602) In-Reply-To: <838udp72yq.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:700:300:3::225 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:185614 Archived-At: Eli Zaretskii wrote: >> From: Stefan Monnier >> Date: Sat, 18 Apr 2015 13:09:01 -0400 >> Cc: acm@muc.de, Harald Hanche-Olsen, emacs-devel@= gnu.org >> >>> Yes, I know all that. But I'd still do all that on a separate branch= , >>> since 'master' is not supposed to be used for such stuff, it's >>> supposed to track upstream as close as possible. >> I think Harald's point is that after "git checkout e56ab7" you're simp= ly >> not in "master" any more. At least, not more than you're in any >> other branch. That's my point, yes. >> Instead, you're in a kind of transient nameless branch. Well, not even that. Branches by definition have names: A branch is a=20 name which (a) points to a commit, (b) moves to a newly created commit=20 when you check in code, and optionally (c) has remote-tracking behaviour. > And my point is: why have a nameless branch, if you can have a named > one? That's a good point, but the reason for it is not any danger of messing=20 up the master branch. Rather, it is the danger of messing up any code=20 you write while in the detached state. =E2=80=93 Harald