Skip to content

Instantly share code, notes, and snippets.

@CAFxX
Last active June 6, 2019 00:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CAFxX/8bd8d8ed820b9a2363e35953de1393c4 to your computer and use it in GitHub Desktop.
Save CAFxX/8bd8d8ed820b9a2363e35953de1393c4 to your computer and use it in GitHub Desktop.
Github wishlist

GitHub wishlist

Smart redirect for branch-less URLs

URLs of the form https://github.com/user/repo/something/somethingelse should redirect to https://github.com/user/repo/defaultbranch/something/somethingelse if:

  • something does not match a branch name
  • something/somethingelse exists in defaultbranch

Smart redirect for renamed files

URLs of the form https://github.com/user/repo/branch/something/somethingelse should redirect to https://github.com/user/repo/branch/somethingnew if:

  • something/somethingelse else does not currently exist in branch
  • something/somethingelse exists in the history of branch, and it has been renamed to somethingnew
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment