Switch pg_regress to output unified diffs by default
authorPeter Eisentraut
Wed, 2 Jan 2019 20:20:53 +0000 (21:20 +0100)
committerPeter Eisentraut
Wed, 2 Jan 2019 20:20:53 +0000 (21:20 +0100)
Author: Christoph Berg 
Discussion: https://www.postgresql.org/message-id/flat/20170406223103[email protected]/

doc/src/sgml/regress.sgml
src/test/regress/pg_regress.c

index 673a8c21642662555e812573b58c094283523aa9..749d1a384bb589cd69b6ee0fb4671d401bedee0b 100644 (file)
@@ -410,7 +410,7 @@ make standbycheck
     If you don't
     like the diff options that are used by default, set the
     environment variable PG_REGRESS_DIFF_OPTS, for
-    instance PG_REGRESS_DIFF_OPTS='-u'.  (Or you
+    instance PG_REGRESS_DIFF_OPTS='-c'.  (Or you
     can run diff yourself, if you prefer.)
    
 
index 3c360d16352ce198576e1d8b744dba4e9fb56ba6..d4f04a8a2c6611961c57844005302e19c9ae9aa9 100644 (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 */