| 699 | } |
| 700 | |
| 701 | static 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 | |
| 717 | int cmd_difftool(int argc, |
| 718 | const char **argv, |
no test coverage detected