github.com/mistwind/reviewdog@v0.0.0-20230322024206-9cfa11856d58/diff/testdata/gen.sh (about)

     1  #!/bin/bash
     2  diff -u sample.{old,new}.txt > sample.diff
     3  git diff --no-index sample.{old,new}.txt > sample.git.diff
     4  diff -u nonewline.{old,new}.txt > nonewline.diff
     5  diff -u nonewline2.{old,new}.txt > nonewline2.diff
     6  diff -u nonewline3.{old,new}.txt > nonewline3.diff
     7  diff -u empty.txt empty.txt > empty.diff
     8  git diff --no-index /dev/null empty.txt > empty_new.diff
     9  git diff --no-index empty.txt /dev/null  > empty_deleted.diff
    10  git diff --no-index /dev/null "empty space.txt" > empty_space.diff
    11  git diff --no-index golint.{old,new}.go > golint.diff
    12  git diff --no-index empty.txt /dev/null > newline_and_empty_deleted.diff
    13  git diff --no-index golint.{old,new}.go >> newline_and_empty_deleted.diff
    14  git -c core.quotepath=true diff --no-index 日本語.{old,new}.txt > 日本語.diff
    15  gofmt -d gofmt.go > gofmt.diff