libgit2

git_trace_set

Version:

Sets the system tracing configuration to the specified level with the specified callback. When system events occur at a level equal to, or lower than, the given level they will be reported to the given callback.

Signature

int git_trace_set(git_trace_level_t level, git_trace_cb cb);

Parameters

In
level

Level to set tracing to

In
cb

Function to call with trace data

Returns

int

0 or an error code

Versions