![](https://seccdn.libravatar.org/avatar/654c5b4f0d657240edff9440a901839b.jpg?s=120&d=mm&r=g)
Dne 18.10.2016 v 16:23 Martin Vidner napsal(a):
Another approach is to link to a specific commit:
https://github.com/openSUSE/libzypp/blob/6b22871a0aab134538edcb6e3d032133081...
This one is better, because you will see the exact code being referred to, and you can always switch to `master` and locate the current version of the code.
Yes, this is easier than doing it the other way round. But there can be a better solution: use a link to the Rubydoc.info documentation if the package is available there. E.g. http://www.rubydoc.info/github/yast/yast-yast2/Packages/Repository#local%3F-... will always point to the Repository#local method regardless its location in the file. And there are [View source] and [View on GitHub] links if you need to see the source code. (Unfortunately this does not work for libzypp, but we can use it at least for the YaST links.)
GitHub tip: pressing 'y' will convert the former URL to the latter.
Um, where/how exactly should that work? It seems it does not work for me... -- Ladislav Slezák YaST Developer SUSE LINUX, s.r.o. Corso IIa Křižíkova 148/34 18600 Praha 8 -- To unsubscribe, e-mail: yast-devel+unsubscribe@opensuse.org To contact the owner, e-mail: yast-devel+owner@opensuse.org