Skip to content
This repository was archived by the owner on Oct 6, 2024. It is now read-only.
This repository was archived by the owner on Oct 6, 2024. It is now read-only.

Symbolic links support. #16

Closed
Closed

Description

@julien-f

Currently when you open a symbolic link in rawgithub its path is displayed (example).

A 307 redirection would be much nicer.

Activity

  1. rgrove commented on Jul 25, 2013

    @rgrove
    Owner

    This would be cool, but I'm not sure it's possible, since there's no way for rawgithub to know that something is a symbolic link without actually cloning a repo. That info is only available as a filesystem attribute and isn't exposed over HTTP.

    Here's the same file exactly as served by GitHub itself:

    https://raw.github.com/vatesfr/xo-web/web-app/public/js/underscore.js

  2. julien-f commented on Jul 25, 2013

    @julien-f
    Author

    It may be overkill for such a little feature but if the file looks like a symbolic link (only one line which looks like a relative path) you may either:

    1. ask the Github API;
    2. see if it is a valid relative path (i.e. the pointed file exists).
  3. rgrove commented on Jul 25, 2013

    @rgrove
    Owner

    Good idea! Asking the API might work. I'd prefer that over making an assumption based on the existence of a valid relative path.

  4. julien-f commented on Jul 25, 2013

    @julien-f
    Author

    I agree the first solution is better but it comes at the cost of an additional HTTP request, so I gave you both 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions