Switch pg_regress to output unified diffs by default

Author: Christoph Berg <myon@debian.org>
Discussion: https://www.postgresql.org/message-id/flat/20170406223103.ixihdedf6d6d4kbk@alap3.anarazel.de/
This commit is contained in:
Peter Eisentraut 2019-01-02 21:20:53 +01:00
parent 69ae9dcb44
commit acfe1392ef
2 changed files with 3 additions and 3 deletions

View File

@ -410,7 +410,7 @@ make standbycheck
If you don't
like the <command>diff</command> options that are used by default, set the
environment variable <envar>PG_REGRESS_DIFF_OPTS</envar>, for
instance <literal>PG_REGRESS_DIFF_OPTS='-u'</literal>. (Or you
instance <literal>PG_REGRESS_DIFF_OPTS='-c'</literal>. (Or you
can run <command>diff</command> yourself, if you prefer.)
</para>

View File

@ -62,10 +62,10 @@ static char *shellprog = SHELLPROG;
*/
#ifndef WIN32
const char *basic_diff_opts = "";
const char *pretty_diff_opts = "-C3";
const char *pretty_diff_opts = "-U3";
#else
const char *basic_diff_opts = "-w";
const char *pretty_diff_opts = "-w -C3";
const char *pretty_diff_opts = "-w -U3";
#endif
/* options settable from command line */