X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=diff.c;h=d922b77aef2da84824a8e14fc21961e36e6d2e36;hb=f64943d242d3b0fff40684d09033f17bb9747a38;hp=fcc0078074c364d0a4c2bd75a6d390e517eb7f87;hpb=81a5bdd9c52d476edcbf5368d1242ab5a92f5e3f;p=git.git diff --git a/diff.c b/diff.c index fcc007807..d922b77ae 100644 --- a/diff.c +++ b/diff.c @@ -2274,6 +2274,8 @@ static void builtin_diffstat(const char *name_a, const char *name_b, memset(&xpp, 0, sizeof(xpp)); memset(&xecfg, 0, sizeof(xecfg)); xpp.flags = o->xdl_opts; + xecfg.ctxlen = o->context; + xecfg.interhunkctxlen = o->interhunkcontext; xdi_diff_outf(&mf1, &mf2, diffstat_consume, diffstat, &xpp, &xecfg); } @@ -3385,6 +3387,10 @@ int diff_opt_parse(struct diff_options *options, const char **av, int ac) } /* xdiff options */ + else if (!strcmp(arg, "--minimal")) + DIFF_XDL_SET(options, NEED_MINIMAL); + else if (!strcmp(arg, "--no-minimal")) + DIFF_XDL_CLR(options, NEED_MINIMAL); else if (!strcmp(arg, "-w") || !strcmp(arg, "--ignore-all-space")) DIFF_XDL_SET(options, IGNORE_WHITESPACE); else if (!strcmp(arg, "-b") || !strcmp(arg, "--ignore-space-change"))