From mboxrd@z Thu Jan 1 00:00:00 1970 From: Junio C Hamano Subject: Re: What I miss from Cogito... Date: Sun, 23 Mar 2008 11:34:07 -0700 Message-ID: <7vzlsp5ly8.fsf@gitster.siamese.dyndns.org> References: <47E69044.3000207@zytor.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Git Mailing List To: "H. Peter Anvin" X-From: git-owner@vger.kernel.org Sun Mar 23 19:34:55 2008 Return-path: Envelope-to: gcvg-git-2@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1JdV1y-0001BA-Ic for gcvg-git-2@gmane.org; Sun, 23 Mar 2008 19:34:54 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754475AbYCWSeN (ORCPT ); Sun, 23 Mar 2008 14:34:13 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754464AbYCWSeN (ORCPT ); Sun, 23 Mar 2008 14:34:13 -0400 Received: from a-sasl-fastnet.sasl.smtp.pobox.com ([207.106.133.19]:60531 "EHLO sasl.smtp.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753522AbYCWSeN (ORCPT ); Sun, 23 Mar 2008 14:34:13 -0400 Received: from localhost.localdomain (localhost [127.0.0.1]) by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTP id EE85B1358; Sun, 23 Mar 2008 14:34:11 -0400 (EDT) Received: from pobox.com (ip68-225-240-77.oc.oc.cox.net [68.225.240.77]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-sasl-fastnet.sasl.smtp.pobox.com (Postfix) with ESMTP id 4A9111356; Sun, 23 Mar 2008 14:34:09 -0400 (EDT) In-Reply-To: <47E69044.3000207@zytor.com> (H. Peter Anvin's message of "Sun, 23 Mar 2008 10:15:48 -0700") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: "H. Peter Anvin" writes: > Native git doesn't have any equivalent, other than: > > git clone -n .... tmp > mv tmp/.git . > rm -rf tmp > git checkout HEAD Or git init git add remote -f ..... > > 2. cg-restore > > Cogito separated "reset" and "restore". This is a syntactic sugar > issue, but having to type "git reset --hard -- path" makes me > nervous, especially since hitting Enter at the wrong time could have > serious and irrevocable consequences. Why --hard?