From mboxrd@z Thu Jan 1 00:00:00 1970 From: Junio C Hamano Subject: Re: git-scm.com refresh Date: Mon, 07 May 2012 10:06:06 -0700 Message-ID: <7vipg77wg1.fsf@alter.siamese.dyndns.org> References: <7vd36j8lc3.fsf@alter.siamese.dyndns.org> <7vwr4q6qbh.fsf@alter.siamese.dyndns.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "Scott Chacon" , "git list" To: "Philip Oakley" X-From: git-owner@vger.kernel.org Mon May 07 19:06:20 2012 Return-path: Envelope-to: gcvg-git-2@plane.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SRRO7-0006dD-RL for gcvg-git-2@plane.gmane.org; Mon, 07 May 2012 19:06:20 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757426Ab2EGRGL (ORCPT ); Mon, 7 May 2012 13:06:11 -0400 Received: from b-pb-sasl-quonix.pobox.com ([208.72.237.35]:59348 "EHLO smtp.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756571Ab2EGRGJ (ORCPT ); Mon, 7 May 2012 13:06:09 -0400 Received: from smtp.pobox.com (unknown [127.0.0.1]) by b-sasl-quonix.pobox.com (Postfix) with ESMTP id CB9217C26; Mon, 7 May 2012 13:06:08 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=ChicCoYpzx/OEJwceKaJGgRxJEw=; b=X+GQMK Q9C01ZOvmXALiR6VQ9JMuOTPsLXfeaBOitZCOVV2dp3QYkPbWHH9tunOE0jALRZH mqZ7BQRhFsivnEIpCdmUp9JO02oQHvtqBiUtLL3NWPp+jGuVtQ6dlqs3CF0OgHGp hnoL1n1mMzTPKZiJFfM+eqh+6rUigHLrEgS/E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=vmVGyEtIx2FidohX+Mvbk49CJ1gL6gnp XS5UOsvt7O+TYHSS8Uj2ZklwnqjXMgtW9NP6Dv6SKmXWdk/ItNQKYBtioUjr24W8 S9JfcIzYw/+Z2evOc0Sfglz+UglYxrLbC5rfJSJRbXvJDe18MwN3fbbxYOUOT2hc yTR9CO0jB40= Received: from b-pb-sasl-quonix.pobox.com (unknown [127.0.0.1]) by b-sasl-quonix.pobox.com (Postfix) with ESMTP id C248B7C24; Mon, 7 May 2012 13:06:08 -0400 (EDT) Received: from pobox.com (unknown [76.102.170.102]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by b-sasl-quonix.pobox.com (Postfix) with ESMTPSA id 3A0987C23; Mon, 7 May 2012 13:06:08 -0400 (EDT) In-Reply-To: (Philip Oakley's message of "Sun, 6 May 2012 09:33:10 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Pobox-Relay-ID: F03DA4BE-9866-11E1-861F-FC762E706CDE-77302942!b-pb-sasl-quonix.pobox.com Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: "Philip Oakley" writes: > From: "Junio C Hamano" Sent: Sunday, May 06, 2012 2:39 > >> "diff" pairs with "apply", and "format-patch" pairs with "am". >> >> I wouldn't mind adding "git patch" as a built-in synonym/alias for "git >> apply", if you think that would make the above pairing more obvious. Many >> computer users know what "patch" does already even they have never used >> any SCM. > > Part of the problem is that the `git diff` man page [1] doesn't actively > tell the user that its result will be in a patch format, and that such a > patch can be `apply`ed. There are only 5 uses of 'apply' buried in the body > text, never as a command, as if they are special cases. There is a section > on the -p option, again it feels like it is a special case. Sounds like you spotted a good set of places in the documentation that need to be updated. > The normal case of `git diff` for most users is simply as an extended 'what > changed' git status. I think that use of "diff" is listed in "Inspection and Comparison" section, and I fully agree and is happy to see "diff" there as well. Of course, I wouldn't suggest "apply" to go next to that use of "diff". But what I have been discussing was the use of "diff" in the "Basic Snapshotting" section. I actually very often use "diff" paired with "apply" for my own work, not when working to integrate others' work. Also I do not think anybody would use "apply" to accept patches (that is what "am" is for), so listing it in "Email" section is doubly wrong. If for some reason the command Reference does not want to have "apply" next to "diff" listed in "Basic Snapshotting", I do not think there is any category on that page for the command to belong to. The above two were the primary things that triggered my reaction. When reshaping a multi-commit series, "git diff $rev1 $rev2 >P.diff" followed by "git apply