From 4d673c9ad4c65c329a85ebb19c2812ae93183099 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Thu, 28 Jun 2018 16:57:21 -0700 Subject: diff: add timestamps to the ---/+++ lines and --color. (My apologies for mixing these two unrelated changes up.) --- tests/diff.test | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/diff.test b/tests/diff.test index ca0b682b..ce51f1e8 100755 --- a/tests/diff.test +++ b/tests/diff.test @@ -5,8 +5,8 @@ seq 10 > left seq 11 > right -expected='--- left -+++ right +expected='--- lll ++++ rrr @@ -8,3 +8,4 @@ 8 9 @@ -14,7 +14,7 @@ expected='--- left +11 ' # Hm this only gives unified diffs? -testing "simple" "diff left right" "$expected" "" "" +testing "simple" "diff -L lll -L rrr left right" "$expected" "" "" expected='--- tree1/file @@ -27,4 +27,4 @@ mkdir -p tree1 tree2 echo foo > tree1/file echo food > tree2/file -testing "simple" "diff -r tree1 tree2 |tee out" "$expected" "" "" +testing "simple" "diff -r -L tree1/file -L tree2/file tree1 tree2 |tee out" "$expected" "" "" -- cgit v1.2.3