[diffoscope] 01/01: presenters.utils: Fix --output-empty when files are identical and no outputs specified.

Chris Lamb chris at chris-lamb.co.uk
Tue Jan 3 11:44:54 CET 2017


This is an automated email from the git hooks/post-receive script.

lamby pushed a commit to branch logging
in repository diffoscope.

commit 352a6ada0f34bf1e67d4028bfd0dc2267509f5fc
Author: Chris Lamb <lamby at debian.org>
Date:   Tue Jan 3 10:44:43 2017 +0000

    presenters.utils: Fix --output-empty when files are identical and no outputs specified.
    
    Signed-off-by: Chris Lamb <lamby at debian.org>
---
 diffoscope/presenters/utils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/diffoscope/presenters/utils.py b/diffoscope/presenters/utils.py
index 323b622..9e3c394 100644
--- a/diffoscope/presenters/utils.py
+++ b/diffoscope/presenters/utils.py
@@ -53,7 +53,7 @@ def output_all(difference, parsed_args, has_differences):
 
     # If no output specified, default to printing --text output to stdout
     if not any(x['target'] for x in FORMATS.values()):
-        FORMATS['text']['target'] = '-'
+        parsed_args.text_output = FORMATS['text']['target'] = '-'
 
     for name, data in FORMATS.items():
         if data['target'] is None:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git


More information about the diffoscope mailing list