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

Function run_file_diff

builtin/difftool.c:701–715  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

699}
700
701static int run_file_diff(int prompt, const char *prefix,
702 struct child_process *child)
703{
704 strvec_push(&child->env, "GIT_PAGER=");
705 strvec_push(&child->env, "GIT_EXTERNAL_DIFF=git-difftool--helper");
706 if (prompt > 0)
707 strvec_push(&child->env, "GIT_DIFFTOOL_PROMPT=true");
708 else if (!prompt)
709 strvec_push(&child->env, "GIT_DIFFTOOL_NO_PROMPT=true");
710
711 child->git_cmd = 1;
712 child->dir = prefix;
713
714 return run_command(child);
715}
716
717int cmd_difftool(int argc,
718 const char **argv,

Callers 1

cmd_difftoolFunction · 0.85

Calls 2

strvec_pushFunction · 0.85
run_commandFunction · 0.85

Tested by

no test coverage detected