From: Junio C Hamano Date: Wed, 26 Mar 2008 07:57:08 GMT Subject: Re: [PATCH v3] filter-branch.sh: support nearly proper tag name filtering Message-ID: <7vmyolgbor.fsf@gitster.siamese.dyndns.org> In-Reply-To: <47E91DF0.5070302@nrlssc.navy.mil> Brandon Casey writes: > If you think the strict ordering that mktag requires could be relaxed in the > future, then the line number addresses in sed could be changed to ranges > like: > > -e "1,4s/^object ..*/object $newobject/" > > Of course, if we use ranges, we may have to worry about matching against > the tag body if the header gets any longer. I do not think you have to worry if you did this: 1,/^$/{ s/object .*/object $newobject/ s/type .*/type $newtype/ ... }