Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: kr/pretty
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.2.1
Choose a base ref
...
head repository: kr/pretty
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.3.1
Choose a head ref
  • 9 commits
  • 9 files changed
  • 7 contributors

Commits on Aug 10, 2020

  1. diff: detect cycles in the values being compared. (#64)

    This prevents infinite recursion, similar to the fixes to the formatter
    in #13.  In addition to detecting cycles, we also check that the two
    values contain the same cyclic structure.
    jhenstridge authored Aug 10, 2020
    Configuration menu
    Copy the full SHA
    4403578 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    814ac30 View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2020

  1. Use github.com/rogpeppe/go-internal/fmtsort for stable map output (#67)

    github.com/rogpeppe/go-internal factors out an opinionated selection of
    internal packages and functionality from the Go standard library. One
    such package is fmtsort:
    
        Package fmtsort provides a general stable ordering mechanism for
        maps, on behalf of the fmt and text/template packages. It is not
        guaranteed to be efficient and works only for types that are valid
        map keys.
    
    Use this package to ensure the Formatter output for maps is stable.
    
    Fixes #47
    myitcv authored Aug 21, 2020
    Configuration menu
    Copy the full SHA
    3630c7d View commit details
    Browse the repository at this point in the history

Commits on Aug 31, 2020

  1. Add GoStringer support (#68)

    Print values using the `GoString()` method (from `fmt.GoStringer()`) if implemented.
    2opremio authored Aug 31, 2020
    Configuration menu
    Copy the full SHA
    59b4212 View commit details
    Browse the repository at this point in the history

Commits on Nov 24, 2020

  1. go.mod: upgrade to github.com/kr/text v0.2.0 (#71)

    This new version switches from obsolete github.com/kr/pty to
    github.com/creak/pty, which has improved platform support.
    jhenstridge authored Nov 24, 2020
    Configuration menu
    Copy the full SHA
    a883a84 View commit details
    Browse the repository at this point in the history

Commits on Aug 5, 2021

  1. Update Dependencies (#75)

    This updates github.com/rogpeppe/go-internal from 1.6.1 to 1.8.0
    and the github action 'setup-go' from v1 to v2.
    
    It also adds a config file for dependabot to automatically check
    this repo for new dependency versions weekly.
    mmorel-35 authored Aug 5, 2021
    Configuration menu
    Copy the full SHA
    0c671bc View commit details
    Browse the repository at this point in the history

Commits on Mar 8, 2022

  1. Bump actions/checkout from 2 to 3 (#84)

    Bumps [actions/checkout](https://github.com/actions/checkout) from 2 to 3.
    - [Release notes](https://github.com/actions/checkout/releases)
    - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
    - [Commits](actions/checkout@v2...v3)
    
    ---
    updated-dependencies:
    - dependency-name: actions/checkout
      dependency-type: direct:production
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Mar 8, 2022
    Configuration menu
    Copy the full SHA
    d928460 View commit details
    Browse the repository at this point in the history

Commits on Aug 25, 2022

  1. Catch panics when calling GoString like fmt %#v does (#87)

    This handles a few cases (similar to how fmt %#v does):
    
    - A GoString method on a value receiver, called with a nil pointer
    - A GoString method on a pointer receiver that doesn't check for nil
    - A GoString method that panics in some other way
    
    Because Go 1.17 added a method Time.GoString with value receiver, this
    broke structs that had *time.Time fields with nil values (which is
    common!).
    
    Also added a bunch of tests for these cases.
    
    Fixes #77
    
    Co-authored-by: Jordan Barrett <jordan.barrett@canonical.com>
    benhoyt and barrettj12 authored Aug 25, 2022
    Configuration menu
    Copy the full SHA
    d8c7eb1 View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2022

  1. Bump github.com/rogpeppe/go-internal from 1.8.0 to 1.9.0 (#88)

    This change bumps github.com/rogpeppe/go-internal from version 1.8.0 to 1.9.0.
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Aug 29, 2022
    Configuration menu
    Copy the full SHA
    3cd153a View commit details
    Browse the repository at this point in the history
Loading