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/6b22871a0aab134538edcb6e3d0321330817baaa/zypp/Url.cc#L464
> 
> 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-instance_method

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: [email protected]
To contact the owner, e-mail: [email protected]

Reply via email to