X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=builtin-diff.c;h=7ffea975059f9e13b07ca680e6707ffc14973f90;hb=2c47789d817aaf745a5ce5d5f79619c634cc8566;hp=faaa85a1d45ce6c5f398a44b1241f6325430918b;hpb=d1f2e1696ce168b3a70b59be7c58fa96c530d4fb;p=git.git diff --git a/builtin-diff.c b/builtin-diff.c index faaa85a1d..7ffea9750 100644 --- a/builtin-diff.c +++ b/builtin-diff.c @@ -296,7 +296,8 @@ int cmd_diff(int argc, const char **argv, const char *prefix) * If the user asked for our exit code then don't start a * pager or we would end up reporting its exit code instead. */ - if (!DIFF_OPT_TST(&rev.diffopt, EXIT_WITH_STATUS)) + if (!DIFF_OPT_TST(&rev.diffopt, EXIT_WITH_STATUS) && + check_pager_config("diff") != 0) setup_pager(); /*