René Scharfe <l.s.r@xxxxxx> writes: >> If we did this instead >> >> git diff --color --color-moved=zebra --no-renames HEAD >expect && >> >> it would make this a lot more self-contained. > > Oh, yes, good idea! We'd still rely on there being staged differences > that include moved lines, Yeah, the primary point of this fix is that the output with "--no-ext-diff" and configured external diff driver, and without either, should be the same. And running the same command twice, once with and once without these two tweaks, and comparing their results is exactly what we want to do.