From: Johannes Schindelin Date: Mon, 13 Aug 2018 12:05:39 GMT Subject: Re: [PATCH 2/8] t3206: add color test for range-diff --dual-color Message-ID: In-Reply-To: <20180810223441.30428-3-sbeller@google.com> Hi Stefan, On Fri, 10 Aug 2018, Stefan Beller wrote: > +test_expect_success 'dual-coloring' ' > + sed -e "s|^:||" >expect <<-\EOF && > + :1: a4b3333 = 1: f686024 s/5/A/ > + :2: f51d370 ! 2: 4ab067d s/4/A/ > + : @@ -2,6 +2,8 @@ That's a neat trick to have an indented here-doc that contains indentation. I should use this myself. The rest of the diff looks good, too, thanks! Dscho > + : > + : s/4/A/ > + : > + : + Also a silly comment here! > + : + > + : diff --git a/file b/file > + : --- a/file > + : +++ b/file > + :3: 0559556 ! 3: b9cb956 s/11/B/ > + : @@ -10,7 +10,7 @@ > + : 9 > + : 10 > + : -11 > + : -+BB > + : ++B > + : 12 > + : 13 > + : 14 > + :4: d966c5c ! 4: 8add5f1 s/12/B/ > + : @@ -8,7 +8,7 @@ > + : @@ > + : 9 > + : 10 > + : - BB > + : + B > + : -12 > + : +B > + : 13 > + EOF > + git range-diff changed...changed-message --color --dual-color >actual.raw && > + test_decode_color >actual + test_cmp expect actual > +' > + > test_done > -- > 2.18.0.865.gffc8e1a3cd6-goog > >