[Reproducible-commits] [debbindiff] 01/01: Increased line context of diff

Reiner Herrmann deki-guest at moszumanska.debian.org
Sun Jan 18 21:08:20 UTC 2015


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

deki-guest pushed a commit to branch master
in repository debbindiff.

commit f10a6a8cceea9e1d8bab8078c89f469bc159f1ca
Author: Reiner Herrmann <reiner at reiner-h.de>
Date:   Sun Jan 18 22:03:19 2015 +0100

    Increased line context of diff
    
    With a small context large blocks of changes that have a single
    or a few equal lines inbetween will be split into multiple
    blocks.  By having a larger context, they will stay in one block
    and more lines can be trimmed.
---
 debbindiff/presenters/html.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debbindiff/presenters/html.py b/debbindiff/presenters/html.py
index 0e06a77..9be5dc2 100644
--- a/debbindiff/presenters/html.py
+++ b/debbindiff/presenters/html.py
@@ -150,7 +150,7 @@ def trim_file(path, skip_lines):
 # reduce size of diff blocks by prediffing with diff (which is extremely fast)
 # and then trimming the blocks larger than the configured limit
 def optimize_files_for_diff(path1, path2):
-    cmd = ['diff', '-au0', path1, path2]
+    cmd = ['diff', '-au7', path1, path2]
     p = subprocess.Popen(cmd, shell=False,
         close_fds=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE)
     stdout, stderr = p.communicate()

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



More information about the Reproducible-commits mailing list