Sha256: 5894ee01c12d61ad09901fc4425d23293afc5c95febad63dd8d89ba115f23b0b

Contents?: true

Size: 785 Bytes

Versions: 52

Compression:

Stored size: 785 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 "buffer.h"
#include "common.h"
#include "global.h"
#include "trace.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

52 entries across 52 versions & 1 rubygems

Version Path
rugged-0.25.1.1 vendor/libgit2/src/trace.c
rugged-0.24.6.1 vendor/libgit2/src/trace.c
rugged-0.25.1 vendor/libgit2/src/trace.c
rugged-0.24.5 vendor/libgit2/src/trace.c
rugged-0.25.0 vendor/libgit2/src/trace.c
rugged-0.25.0b10 vendor/libgit2/src/trace.c
rugged-0.25.0b9 vendor/libgit2/src/trace.c
rugged-0.25.0b8 vendor/libgit2/src/trace.c
rugged-0.25.0b7 vendor/libgit2/src/trace.c
rugged-0.25.0b6 vendor/libgit2/src/trace.c
rugged-0.25.0b5 vendor/libgit2/src/trace.c
rugged-0.25.0b4 vendor/libgit2/src/trace.c
rugged-0.25.0b3 vendor/libgit2/src/trace.c
rugged-0.25.0b2 vendor/libgit2/src/trace.c
rugged-0.25.0b1 vendor/libgit2/src/trace.c
rugged-0.24.0 vendor/libgit2/src/trace.c
rugged-0.24.0b14 vendor/libgit2/src/trace.c
rugged-0.24.0b13 vendor/libgit2/src/trace.c
rugged-0.24.0b12 vendor/libgit2/src/trace.c
rugged-0.24.0b11 vendor/libgit2/src/trace.c