From: Junio C Hamano Subject: Re: [PATCH] Correct usages of sed in git-tag for Mac OS X Date: Sat, 30 Jun 2007 00:00:07 -0700 Message-ID: <7vzm2ic4g8.fsf@assigned-by-dhcp.pobox.com> References: <20070630064247.GA18041@spearce.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: git@vger.kernel.org To: "Shawn O. Pearce" X-From: git-owner@vger.kernel.org Sat Jun 30 09:00:31 2007 Return-path: Envelope-to: gcvg-git@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1I4WwW-000086-Fz for gcvg-git@gmane.org; Sat, 30 Jun 2007 09:00:28 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751633AbXF3HAK (ORCPT ); Sat, 30 Jun 2007 03:00:10 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751535AbXF3HAK (ORCPT ); Sat, 30 Jun 2007 03:00:10 -0400 Received: from fed1rmmtao106.cox.net ([68.230.241.40]:60089 "EHLO fed1rmmtao106.cox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751478AbXF3HAJ (ORCPT ); Sat, 30 Jun 2007 03:00:09 -0400 Received: from fed1rmimpo01.cox.net ([70.169.32.71]) by fed1rmmtao106.cox.net (InterMail vM.7.08.02.01 201-2186-121-102-20070209) with ESMTP id <20070630070009.OKVD3993.fed1rmmtao106.cox.net@fed1rmimpo01.cox.net>; Sat, 30 Jun 2007 03:00:09 -0400 Received: from assigned-by-dhcp.pobox.com ([68.5.247.80]) by fed1rmimpo01.cox.net with bizsmtp id Hj071X00F1kojtg0000000; Sat, 30 Jun 2007 03:00:08 -0400 In-Reply-To: <20070630064247.GA18041@spearce.org> (Shawn O. Pearce's message of "Sat, 30 Jun 2007 02:42:47 -0400") 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: "Shawn O. Pearce" writes: > These major Git functions are much more important than > saving two or three lines of a simple sed script. The size of the script does not worry me. The number of sed processes originally did, but the old code also had two invocations of sed, and I do not think you can implement the "strip the header, and then emit ${LINES} lines" behaviour without doing them in separate sed anyway, so I think this is fine. But it makes me wonder why we are not using awk ;-)