Re: [PATCH] gitweb: Better symbolic link support in "tree" view
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- Dec 5, 2006, 21:27 UTC
- Message-ID
- <200612052227.56770.jnareb@gmail.com>
- In-Reply-To
- <7vr6vfkv3i.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano wrote:
Show 11 quoted lines
> Jakub Narebski <jnareb@gmail.com> writes: > >> In "tree" view (git_print_tree_entry subroutine), add for symbolic >> links after file name " -> link_target", a la "ls -l". Use >> git_get_link_target_html to escape target name and make it into >> hyperlink if possible. > > I think " -> link_target" is fine, but I do not know if it is > useful (while I do not think it is wrong) to make the value that > would have been returned from readlink() into an href, even when > it points at something inside the same revision.
I have added this bit (making symbolic link target symlink) because otherwise there is no way, besides hand-munging the URL, to go to the link target.
From the command line, tools usually follow symlinks. In gitweb, "blob" view (and "blob_plain" view) show symbolic link contents... not that I'm for changing this, mind you.
-- Jakub Narebski