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 Apple Diff timestamps #65

Closed freeformz closed 2 years ago

freeformz commented 2 years ago

Apple's diff (at least the one shipping with macOS Ventura) does not include the fractional seconds or Timezone in its output.

This adds support for that so diffutils does not need to be installed.

I first encountered this problem using golangci-lint on macOS after upgrading to macOS Ventura.

freeformz commented 2 years ago

@keegancsmith I removed the tracking of TZ being present or not and modified the test to use an alternate file, if specified, for checking output.

rbespalovnc commented 1 year ago

Hi,

Thanks for fixing, is there a plan to make a new release?

keegancsmith commented 1 year ago

@rbespalovnc just tagged v0.7.0 https://github.com/sourcegraph/go-diff/releases/tag/v0.7.0