MCPcopy Create free account
hub / github.com/git/git / fn_command_path_fl

Function fn_command_path_fl

trace2/tr2_tgt_event.c:256–268  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

254}
255
256static void fn_command_path_fl(const char *file, int line, const char *pathname)
257{
258 const char *event_name = "cmd_path";
259 struct json_writer jw = JSON_WRITER_INIT;
260
261 jw_object_begin(&jw, 0);
262 event_fmt_prepare(event_name, file, line, NULL, &jw);
263 jw_object_string(&jw, "path", pathname);
264 jw_end(&jw);
265
266 tr2_dst_write_line(&tr2dst_event, &jw.json);
267 jw_release(&jw);
268}
269
270static void fn_command_ancestry_fl(const char *file, int line, const char **parent_names)
271{

Callers

nothing calls this directly

Calls 6

jw_object_beginFunction · 0.85
event_fmt_prepareFunction · 0.85
jw_object_stringFunction · 0.85
jw_endFunction · 0.85
tr2_dst_write_lineFunction · 0.85
jw_releaseFunction · 0.85

Tested by

no test coverage detected