Sha256: 3fdb6afb0275824454e693a37563549aa903e8e8900ac41b7ee6e7bd977c002e

Contents?: true

Size: 764 Bytes

Versions: 18

Compression:

Stored size: 764 Bytes

Contents

/*
 * Copyright (C) the libgit2 contributors. All rights reserved.
 *
 * This file is part of libgit2, distributed under the GNU GPL v2 with
 * a Linking Exception. For full terms see the included COPYING file.
 */

#include "common.h"
#include "git2/proxy.h"

int git_proxy_init_options(git_proxy_options *opts, unsigned int version)
{
	GIT_INIT_STRUCTURE_FROM_TEMPLATE(
		opts, version, git_proxy_options, GIT_PROXY_OPTIONS_INIT);
	return 0;
}

int git_proxy_options_dup(git_proxy_options *tgt, const git_proxy_options *src)
{
	if (!src) {
		git_proxy_init_options(tgt, GIT_PROXY_OPTIONS_VERSION);
		return 0;
	}

	memcpy(tgt, src, sizeof(git_proxy_options));
	if (src->url) {
		tgt->url = git__strdup(src->url);
		GITERR_CHECK_ALLOC(tgt->url);
	}

	return 0;
}

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
rugged-0.26.3 vendor/libgit2/src/proxy.c
rugged-0.26.0 vendor/libgit2/src/proxy.c
rugged-0.26.0b5 vendor/libgit2/src/proxy.c
rugged-0.26.0b4 vendor/libgit2/src/proxy.c
rugged-0.26.0b3 vendor/libgit2/src/proxy.c
rugged-0.26.0b2 vendor/libgit2/src/proxy.c
rugged-0.26.0b1 vendor/libgit2/src/proxy.c
rugged-0.25.1.1 vendor/libgit2/src/proxy.c
rugged-0.25.1 vendor/libgit2/src/proxy.c
rugged-0.25.0 vendor/libgit2/src/proxy.c
rugged-0.25.0b10 vendor/libgit2/src/proxy.c
rugged-0.25.0b9 vendor/libgit2/src/proxy.c
rugged-0.25.0b8 vendor/libgit2/src/proxy.c
rugged-0.25.0b7 vendor/libgit2/src/proxy.c
rugged-0.25.0b6 vendor/libgit2/src/proxy.c
rugged-0.25.0b5 vendor/libgit2/src/proxy.c
rugged-0.25.0b4 vendor/libgit2/src/proxy.c
rugged-0.25.0b3 vendor/libgit2/src/proxy.c