From: Junio C Hamano Date: Tue, 25 Mar 2008 01:14:21 GMT Subject: Re: [PATCH] filter-branch.sh: support nearly proper tag name filtering Message-ID: <7v63vbr4eq.fsf@gitster.siamese.dyndns.org> In-Reply-To: <47E8267D.5000405@nrlssc.navy.mil> Brandon Casey writes: > I learned that the 'Q' command to sed is not portable, and most versions > of sed require a newline after 'c\' like commands. Both true. If you want to be portable to esoteric ones (I suffered AIX while hacking on autoconf long time ago), sed is a bitch to get right. What I meant with my earlier comment was that it would have been more robust if you did a sequence of: s/type .*/type $newtype/ s/object .*/object $newobject/ instead of relying on the order in the existing objects, but I should have been more explicit about c\ as well.