go-patch icon indicating copy to clipboard operation
go-patch copied to clipboard

Alternate method of implementing wildcard support

Open aeijdenberg opened this issue 8 years ago • 2 comments

@cppforlife - here is an alternate way of implementing wildcard support.

The first commit restructures replace_op.go to use a stack instead of a loop - while it touches a lot of lines, the changes to structure are minimal.

The second adds wildcards.

aeijdenberg avatar Aug 03 '17 07:08 aeijdenberg

+1 I would really appreciate a solution for replacing all matches.

damzog avatar Jan 30 '18 12:01 damzog

@cppforlife any chances of getting wildcard support in? I'm wondering about how to resolve a few of the current ops-file shortcomings described in https://github.com/cloudfoundry/cf-deployment/blob/master/texts/issues-and-features-for-bosh.md#wildcard-paths-in-operations

Even if the solution to this issue is not wildcard support, what's your view on how to overcome the current issues e.g. with an ops-file to rename the network in cf-deployment: https://github.com/cloudfoundry/cf-deployment/blob/master/operations/rename-network-and-deployment.yml

voelzmo avatar Oct 16 '18 15:10 voelzmo