From: Junio C Hamano Date: Mon, 14 Aug 2006 23:28:11 GMT Subject: Re: [PATCH 1/9] gitweb: Great subroutines renaming Message-ID: <7v8xlqdhis.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <200608140205.47380.jnareb@gmail.com> Jakub Narebski writes: > I'm not sure if to add script used to create this commit, and to > port changes to be "post-rename". Here it is: > > #!/bin/bash > if test -z "$1"; then > FILE=`git rev-parse --show-cdup`gitweb/gitweb.perl > else > FILE=$1 > fi > echo "Great subroutine renaming: $FILE" > perl -s -p -i.re~ \ > -e 's/\bgit_get_referencing\b/format_ref_marker/;' \ Will apply, but I suspect all of these need g at the end as in "s/foo/bar/g;".