We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
git diff
2 parents 3e2a9a5 + b5479c5 commit 8b2d1ddCopy full SHA for 8b2d1dd
compiler/test/dotty/tools/vulpix/FileDiff.scala
@@ -12,10 +12,13 @@ import java.nio.charset.StandardCharsets
12
13
14
object FileDiff {
15
+ def diffCommand(expectFile: String, actualFile: String): String =
16
+ s"git diff --no-index -- $expectFile $actualFile"
17
+
18
def diffMessage(expectFile: String, actualFile: String): String =
19
s"""Test output dumped in: $actualFile
- | See diff of the checkfile (`brew install icdiff` for colored diff)
- | > diff $expectFile $actualFile
20
+ | See diff of the checkfile (`--color=always` for colored diff)
21
+ | > ${FileDiff.diffCommand(expectFile, actualFile)}
22
| Replace checkfile with current output
23
| > mv $actualFile $expectFile
24
""".stripMargin
0 commit comments