You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: utils.go
    path of file: ./repos/werf/pkg/deploy/bundles
    
    the code of the file until where you have to start completion: package bundles

import (
	"strings"

	"github.com/werf/werf/pkg/util"
)

func GetChartNameOverwrite(targetRepo, renameChart string, helmCompatibleChart bool) *string {
	switch {
	case renameChart != "":
		ret := new(string)
		*ret = renameChart
		return ret
	case helmCompatibleChart:
		// FIXME(v1.3): in v1.2 HelmCompatibleChart mode is enabled by default for the 'werf bundle copy', but disabled for the 'werf bundle publish'. We need to decide whether compatibility mode will be enabled or disabled by default for all bundle commands.
		ret := new(string)
	
    
func GetChartNameOverwrite(targetRepo, renameChart string, helmCompatibleChart bool) *string {
	switch {
	case renameChart != "":
		ret := new(string)
		*ret = renameChart
		return ret
	case helmCompatibleChart:
		// FIXME(v1.3): in v1.2 HelmCompatibleChart mode is enabled by default for the 'werf bundle copy', but disabled for the 'werf bundle publish'. We need to decide whether compatibility mode will be enabled or disabled by default for all bundle commands.
		ret := new(string)
		*ret = util.Reverse(strings.SplitN(util.Reverse(targetRepo), "/", 2)[0])
		return ret
	}

	return nil
}