Skip to content

.patch and .diff links are not working from a PR commit #104

Closed

Description

@hkdobrev

GitHub still supports the /commit/<sha>.patch and /commit/<sha>.diff URLs, but it doesn't support them on PR commits like 24b1e27, it shows an inline 404 about not founding a commit range https://github.com/sindresorhus/refined-github/pull/99/commits/24b1e2710a1c93f9ff02e35837629b93ee3ff4fa.patch I guess this has something to do with .. and ... range operators in Git.

I consider this to be a bug caused by overlooking the patch and diff support from GitHub and I'll contact them about it, but we can still work around it by constructing the original commit URL (sometimes using the fork URL).

Activity

  1. added 2 commits that reference this issue on Mar 30, 2016
    de1ab0e
    b055ba9
  2. added a commit that references this issue on Mar 30, 2016
    84e2c49
  3. added a commit that references this issue on Mar 31, 2016
    da72e40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions