You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 6, 2024. It is now read-only.
Repository navigation
This repository was archived by the owner on Oct 6, 2024. It is now read-only.
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:
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:
Activity
rgrove commentedon Jul 25, 2013
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
julien-f commentedon Jul 25, 2013
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:
rgrove commentedon Jul 25, 2013
Good idea! Asking the API might work. I'd prefer that over making an assumption based on the existence of a valid relative path.
julien-f commentedon Jul 25, 2013
I agree the first solution is better but it comes at the cost of an additional HTTP request, so I gave you both 😄