adding __git_func_wrap if does not exist