Re: [PATCH 1/9] gitweb: Great subroutines renaming
- From
Junio C Hamano <junkio@cox.net>
- Date
- Aug 14, 2006, 23:28 UTC
- Message-ID
- <7v8xlqdhis.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <200608140205.47380.jnareb@gmail.com>
Jakub Narebski <jnareb@gmail.com> writes:
Show 12 quoted lines
> 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;".