From mboxrd@z Thu Jan 1 00:00:00 1970 From: Junio C Hamano Subject: Re: several quick questions Date: Tue, 14 Feb 2006 16:34:31 -0800 Message-ID: <7vpslppii0.fsf@assigned-by-dhcp.cox.net> References: <43F20532.5000609@iaglans.de> <87fymlvgzv.wl%cworth@cworth.org> <200602142230.11442.Josef.Weidendorfer@gmx.de> <7v7j7xr54u.fsf@assigned-by-dhcp.cox.net> <43F26129.4040804@op5.se> <43F270F5.7070804@op5.se> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Johannes Schindelin , Josef Weidendorfer , git@vger.kernel.org X-From: git-owner@vger.kernel.org Wed Feb 15 01:34:47 2006 Return-path: Envelope-to: gcvg-git@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F9Acw-0001LZ-Cc for gcvg-git@gmane.org; Wed, 15 Feb 2006 01:34:38 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1422898AbWBOAef (ORCPT ); Tue, 14 Feb 2006 19:34:35 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1422899AbWBOAef (ORCPT ); Tue, 14 Feb 2006 19:34:35 -0500 Received: from fed1rmmtao11.cox.net ([68.230.241.28]:33683 "EHLO fed1rmmtao11.cox.net") by vger.kernel.org with ESMTP id S1422898AbWBOAee (ORCPT ); Tue, 14 Feb 2006 19:34:34 -0500 Received: from assigned-by-dhcp.cox.net ([68.4.9.127]) by fed1rmmtao11.cox.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20060215003302.PMGJ6244.fed1rmmtao11.cox.net@assigned-by-dhcp.cox.net>; Tue, 14 Feb 2006 19:33:02 -0500 To: Andreas Ericsson In-Reply-To: <43F270F5.7070804@op5.se> (Andreas Ericsson's message of "Wed, 15 Feb 2006 01:08:21 +0100") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux) Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: Andreas Ericsson writes: > Heh. You're right. :) Didn't grok that from the man-page. I'm so used > to seeing everywhere that when it says " can be > any object that refers to a commit" I get confused. You are right; the documentation is wrong. It says 'git-checkout' [-f] [-b ] [-m] [] [...] It should have said something like: git-checkout [ -f | -m ] or git-checkout [-b ] or git-checkout [ | -- ] ... The first form is to switch to a branch (with flag to say what to do when conflict can lose local modification); the second form is to create a new branch out of comittish and switch to it; and the third is not switching branches but just checking out named paths out of index or arbitrary comittish (I think any ent should do but I have not verified it).