Re: [PATCH v3] filter-branch.sh: support nearly proper tag name filtering
Brandon Casey <casey@nrlssc.navy.mil> writes:
Show 8 quoted lines
> 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/
...
}