sourcegraph / go-diff

Unified diff parser and printer for Go
https://sourcegraph.com/github.com/sourcegraph/go-diff
Other
426 stars 48 forks source link

support sorting multi-file diff before printing #31

Open sqs opened 5 years ago

sqs commented 5 years ago

NOTE: This is just a demo PR. It is not intended to be merged.

Makes it easier to canonicalize the output of PrintMultiFileDiff by adding a new PrintOptions arg that lets the caller specify that the diffs should be sorted before printing.

codecov[bot] commented 5 years ago

Codecov Report

Merging #31 into master will decrease coverage by 0.09%. The diff coverage is 20%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master      #31     +/-   ##
=========================================
- Coverage   26.91%   26.82%   -0.1%     
=========================================
  Files           5        5             
  Lines        1133     1137      +4     
=========================================
  Hits          305      305             
- Misses        784      787      +3     
- Partials       44       45      +1
Impacted Files Coverage Δ
diff/print.go 42.5% <20%> (-2.24%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 042635e...459b936. Read the comment docs.