MCPcopy Index your code
hub / github.com/git/git / capture_command

Function capture_command

run-command.h:272–277  ·  view source on GitHub ↗

* Convenience wrapper around pipe_command for the common case * of capturing only stdout. */

Source from the content-addressed store, hash-verified

270 * of capturing only stdout.
271 */
272static inline int capture_command(struct child_process *cmd,
273 struct strbuf *out,
274 size_t hint)
275{
276 return pipe_command(cmd, NULL, 0, out, hint, NULL, 0);
277}
278
279/*
280 * The purpose of the following functions is to feed a pipe by running

Callers 15

submodule_has_commitsFunction · 0.85
get_next_submoduleFunction · 0.85
query_fsmonitor_hookFunction · 0.85
parse_diffFunction · 0.85
apply_commandFunction · 0.85
split_mail_mboxFunction · 0.85
compute_rev_nameFunction · 0.85
deinit_submoduleFunction · 0.85

Calls 1

pipe_commandFunction · 0.85

Tested by

no test coverage detected