Sha256: 86220ee758bafd196378116b5dda9b25801f5673a1c55563bcd5a097efe3c5f3

Contents?: true

Size: 766 Bytes

Versions: 8

Compression:

Stored size: 766 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 "trace.h"

#include "buffer.h"
#include "global.h"
#include "git2/trace.h"

#ifdef GIT_TRACE

struct git_trace_data git_trace__data = {0};

#endif

int git_trace_set(git_trace_level_t level, git_trace_callback callback)
{
#ifdef GIT_TRACE
	assert(level == 0 || callback != NULL);

	git_trace__data.level = level;
	git_trace__data.callback = callback;
	GIT_MEMORY_BARRIER;

	return 0;
#else
	GIT_UNUSED(level);
	GIT_UNUSED(callback);

	giterr_set(GITERR_INVALID,
		"this version of libgit2 was not built with tracing.");
	return -1;
#endif
}

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rugged-0.27.10.1 vendor/libgit2/src/trace.c
rugged-0.27.9 vendor/libgit2/src/trace.c
rugged-0.27.7 vendor/libgit2/src/trace.c
rugged-0.27.5 vendor/libgit2/src/trace.c
rugged-0.27.4 vendor/libgit2/src/trace.c
rugged-0.27.2 vendor/libgit2/src/trace.c
rugged-0.27.1 vendor/libgit2/src/trace.c
rugged-0.27.0 vendor/libgit2/src/trace.c