From mboxrd@z Thu Jan 1 00:00:00 1970 From: Junio C Hamano Subject: Re: [PATCH] git-revert is one of the most misunderstood command in git, help users out. Date: Tue, 06 Nov 2007 10:06:04 -0800 Message-ID: <7v8x5bi703.fsf@gitster.siamese.dyndns.org> References: <1194289301-7800-1-git-send-email-madcoder@debian.org> <7vlk9cmiyq.fsf@gitster.siamese.dyndns.org> <7vsl3kjdct.fsf@gitster.siamese.dyndns.org> <7vode8j7o5.fsf@gitster.siamese.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Steven Grimm , Pierre Habouzit , git@vger.kernel.org To: Johannes Schindelin X-From: git-owner@vger.kernel.org Tue Nov 06 19:06:51 2007 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 1IpSp2-0007yX-3k for gcvg-git-2@gmane.org; Tue, 06 Nov 2007 19:06:44 +0100 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754743AbXKFSGN (ORCPT ); Tue, 6 Nov 2007 13:06:13 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752613AbXKFSGM (ORCPT ); Tue, 6 Nov 2007 13:06:12 -0500 Received: from sceptre.pobox.com ([207.106.133.20]:43900 "EHLO sceptre.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752973AbXKFSGL (ORCPT ); Tue, 6 Nov 2007 13:06:11 -0500 Received: from sceptre (localhost.localdomain [127.0.0.1]) by sceptre.pobox.com (Postfix) with ESMTP id B40B82EF; Tue, 6 Nov 2007 13:06:32 -0500 (EST) Received: from pobox.com (ip68-225-240-77.oc.oc.cox.net [68.225.240.77]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by sceptre.sasl.smtp.pobox.com (Postfix) with ESMTP id 2C50B92D54; Tue, 6 Nov 2007 13:06:28 -0500 (EST) In-Reply-To: (Johannes Schindelin's message of "Tue, 6 Nov 2007 12:32:24 +0000 (GMT)") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: Johannes Schindelin writes: > Well, I think that _if_ we allow "git revert " to mean "revert the > changes to , relative to the index" (which would be the same as "git > checkout "), then committing that change just does not make sense. > > And it is this behaviour that people are seeking, not "git revert > ". Heh, I found this in the recent log somewhere. Really, I wonder how difficult git is for people who are not brainwashed by cvs/svn, and unfortunately enough, partly by bzr and hg. From a user perspective, you might be correct. But then we have to add 1000 commands to reflect the English language. Not what I want. [06:46] I am wondering who said it ;-). But anyway, I am inclined to agree that accepting "$scm revert paths.." as a synonym for "git checkout -- paths..."