(snip)
> horked in terms of existing URLs, but if someone finds a URL that
> doesn't work, I'll hammer on it.
Thank you.
Perhaps the following (examples of) redirection links could be
improved?
In the following pairs of links, the first line is the old
(gitweb-caching style) link, and the second line would be the
destination of the redirection as it would be expected (at least,
IMHO).
http://git.zytor.com/?o=descr
http://git.zytor.com/?s=desc
http://git.zytor.com/?o=owner
http://git.zytor.com/?s=owner
http://git.zytor.com/?o=age
http://git.zytor.com/?s=idle
Heads:
http://git.zytor.com/?p=syslinux/syslinux.git;a=heads
http://git.zytor.com/syslinux/syslinux.git/refs/heads
The redirection of "shortlog" works as expected:
http://git.zytor.com/?p=syslinux/syslinux.git;a=shortlog
http://git.zytor.com/syslinux/syslinux.git/log/
but the redirection of a "log" (as in gitweb-caching terminology)
should rather redirect to the "expanded log" in cgit (note the
"?showmsg=1" flag):
http://git.zytor.com/?p=syslinux/syslinux.git;a=log
http://git.zytor.com/syslinux/syslinux.git/log/?showmsg=1
And similarly:
http://git.zytor.com/?p=syslinux/syslinux.git;a=log;h=refs/tags/syslinux
-4.07
http://git.zytor.com/syslinux/syslinux.git/log/?id=refs/tags/syslinux-4.
07&showmsg=1
Tag examples (note the "a=tag" -> "/tag/" parts of the
links, instead
of "a=commit" -> "/commit/"):
http://git.zytor.com/?p=syslinux/syslinux.git;a=tags
http://git.zytor.com/syslinux/syslinux.git/refs/tags
http://git.zytor.com/?p=syslinux/syslinux.git;a=tag;h=refs/tags/syslinux
-4.07
http://git.zytor.com/syslinux/syslinux.git/tag/?id=syslinux-4.07
http://git.zytor.com/syslinux/syslinux.git/tag/?id=a4fcb6d867aadcaf5af8f
87eb1ba96abe2748159
http://git.zytor.com/syslinux/syslinux.git/tag/?id=syslinux-4.07
Snapshot example:
http://git.zytor.com/?p=syslinux/syslinux.git;a=snapshot;h=61f106ba8a5b2
a7c2d9855291fd9e7f4a4d3143d;sf=tgz
Note that in this example, the "sf=" parameter is "sf=tgz".
So perhaps it should go to:
http://git.zytor.com/syslinux/syslinux.git/snapshot/syslinux-61f106ba8a5
b2a7c2d9855291fd9e7f4a4d3143d.tar.gz
I think that an old "gitweb-chaching" snapshot link should either take
the new
link format (according to the file format; in the example: "sf=tgz"
->
".tar.gz"), and if it fails (e.g. the file does not exist) it should
fallback
to the respective commit id.
In this example, the fallback (i.e. commit id) would be:
http://git.zytor.com/syslinux/syslinux.git/commit/?id=61f106ba8a5b2a7c2d
9855291fd9e7f4a4d3143d
where several file formats would be available as snapshots for
download.
TIA,
Ady.