Skip to content
This repository has been archived by the owner on Oct 2, 2018. It is now read-only.

[Linking in GitHub] For future-proof documentation #255

Open
Ryuno-Ki opened this issue Dec 12, 2014 · 3 comments
Open

[Linking in GitHub] For future-proof documentation #255

Ryuno-Ki opened this issue Dec 12, 2014 · 3 comments

Comments

@Ryuno-Ki
Copy link

I saw today @joshua-s linking to files in the project, which is a good thing!

However, since he used a branch (develop) instead of a commit in the tree, the link will be kind of broken in the future, when this file gets touched.

Hence, I'd suggest to go via the letter like so:

  1. Click on the file, you want to link to.
  2. Click on History (upper right corner in desktop view).
  3. Click on <> next to the commit hash for the file in question.
  4. Click on the line in order to get the correct URL.
  5. Copy that URL and insert it into an issue report.

I know it's a bit nasty. If people agree, I consider mailing GitHub support and suggest a better UI for this.

@twiss
Copy link
Collaborator

twiss commented Dec 12, 2014

There's a keyboard shortcut for this, "y".

@ferndot
Copy link
Member

ferndot commented Dec 12, 2014

I will do that in the future!

@Ryuno-Ki
Copy link
Author

@twiss Wasn't aware, that GitHub supports ? for shortcuts. Thank you!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants