From db8a22b6f3f7a584bb5407c2199027432ff7e2b6 Mon Sep 17 00:00:00 2001 From: David Caldwell Date: Thu, 19 May 2011 08:34:26 -0700 Subject: [PATCH] [commit-patch] Fix error for lsdiff so it reflects the current usage. --- commit-patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commit-patch b/commit-patch index 4f1138f..4ec9d12 100755 --- a/commit-patch +++ b/commit-patch @@ -206,7 +206,7 @@ if ($vc{name} eq 'git') { } my ($lsdiff_out, $err); -run ["lsdiff", '-s', @{$vc{lsdiffarg}}, $patch], '>', \$lsdiff_out, '2>', \$err or die "lsdiff|sort|unique : $! ($err)"; +run ["lsdiff", '-s', @{$vc{lsdiffarg}}, $patch], '>', \$lsdiff_out, '2>', \$err or die "lsdiff -s: $! ($err)"; my %lsdiff = map { /^([-+!])\s+(.*)$/ or die "bad lsdiff line: $_\nOut:\n$lsdiff_out"; ( $2 => $1 ) } split(/\n/, $lsdiff_out); my @added = grep { $lsdiff{$_} eq '+' } keys %lsdiff; my @removed = grep { $lsdiff{$_} eq '-' } keys %lsdiff; -- 2.51.2