Skip to content

Support Apple Diff timestamps #65

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 31, 2022

Conversation

freeformz
Copy link
Contributor

@freeformz freeformz commented Oct 27, 2022

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.

Apple's diff (at least the one shipping with macOS Venture) does not
include the fractional seconds or Timezone in it's 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.
This addresses PR feedback.
@freeformz
Copy link
Contributor Author

@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.

Copy link
Member

@keegancsmith keegancsmith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@keegancsmith keegancsmith merged commit 7ef5f68 into sourcegraph:master Oct 31, 2022
@freeformz freeformz deleted the ffz/SupportAppleDiff branch November 8, 2022 17:57
@rbespalovnc
Copy link

Hi,

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

@keegancsmith
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants