diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2021-11-14 08:47:40 -0500 |
|---|---|---|
| committer | Edward Thomson <ethomson@edwardthomson.com> | 2022-02-22 22:07:44 -0500 |
| commit | ef4ab2988320005cbcb3db920e6b41f10b3c60cf (patch) | |
| tree | 6609f213ad9d607e8df1f543919d3154c056c3ef /src/trace.c | |
| parent | 49e180c862dc7c6d1f62a53bf8756e25b3417968 (diff) | |
| download | libgit2-ef4ab2988320005cbcb3db920e6b41f10b3c60cf.tar.gz | |
refactor: `src` is now `src/libgit2`
Diffstat (limited to 'src/trace.c')
| -rw-r--r-- | src/trace.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/trace.c b/src/trace.c deleted file mode 100644 index b0c56c4dc..000000000 --- a/src/trace.c +++ /dev/null @@ -1,25 +0,0 @@ -/* - * 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 "str.h" -#include "runtime.h" -#include "git2/trace.h" - -struct git_trace_data git_trace__data = {0}; - -int git_trace_set(git_trace_level_t level, git_trace_cb callback) -{ - GIT_ASSERT_ARG(level == 0 || callback != NULL); - - git_trace__data.level = level; - git_trace__data.callback = callback; - GIT_MEMORY_BARRIER; - - return 0; -} |
