Package: tardiff
Version: 0.1-2

The -s option seems to calculate the added/removed statistics wrong as
it expects spaces behind the + and - characters in unified diffs:

→ tar cvzf a.tgz a
a/
a/foo
→ tar cvzf b.tgz b
b/
b/foo
→ diff -u a b
diff -u a/foo b/foo
--- a/foo       2015-10-17 16:07:55.265048478 +0200
+++ b/foo       2015-10-17 16:08:10.649004464 +0200
@@ -1,3 +1,3 @@
 foo
-bar
+fnord
 foo
→ tardiff -m -s a.tgz b.tgz
/ foo                                               (    2 + /     0 -)

It should be "1 + / 1 -" instead of "2 + / 0 -".

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (600, 'testing'), (111, 'buildd-unstable'), 
(111, 'buildd-experimental'), (110, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.2.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages tardiff depends on:
ii  perl  5.20.2-6

tardiff recommends no packages.

tardiff suggests no packages.

-- no debconf information

Reply via email to