From 1ee22bfb792f389e38e5c637972e38338b25f9b0 Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Sun, 13 Jun 2021 14:03:14 +0200 Subject: [PATCH] compare -L show absolute path (for #312) --- dotdrop/dotdrop.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/dotdrop/dotdrop.py b/dotdrop/dotdrop.py index d6ef02a..4e33227 100644 --- a/dotdrop/dotdrop.py +++ b/dotdrop/dotdrop.py @@ -168,11 +168,12 @@ def _dotfile_compare(opts, dotfile, tmp): if diff != '': # print diff results - line = '=> compare {}: diffing with \"{}\"' - LOG.log(line.format(dotfile.key, dotfile.dst)) if opts.compare_fileonly: - LOG.raw('') + line = '=> differ: \"{}\" \"{}\"'.format(dotfile.src, dotfile.dst) + LOG.log(line.format(dotfile.key, dotfile.dst)) else: + line = '=> compare {}: diffing with \"{}\"' + LOG.log(line.format(dotfile.key, dotfile.dst)) LOG.emph(diff) return False