Re: Complex gitweb URL

2016-07-25 Thread Junio C Hamano
Jakub Narębski writes: > Subject: [PATCH] gitweb(1): Document query parameters > > The gitweb manpage includes description of gitweb URL structure, > but it was limited to passing parameters in the path part of URL > ('path info'), and it didn't include explanation of query parameters. > --- I t

Re: Complex gitweb URL

2016-07-23 Thread Jakub Narębski
W dniu 2016-07-20 o 21:24, CLOSE Dave pisze: > I'm trying to create a URL that will always refer to the latest version > of a file stored under Gerrit. gitweb access is available. The man page > specification doesn't seem to work for me. Instead, I seem to need to > put most of the information

Re: Complex gitweb URL

2016-07-20 Thread Jakub Narębski
On 20 July 2016 at 23:35, CLOSE Dave wrote: > Thanks, Jakub, for the quick response. > > On 07/20/16 02:20 PM, Jakub Narębski wrote: > >>> If I replace the hb=SHA argument with hb=HEAD, the URL still works. But >>> I have no idea what I can use to replace the h=SHA argument. >> >> You can remove i

Re: Complex gitweb URL

2016-07-20 Thread CLOSE Dave
On 07/20/16 02:20 PM, Jakub Narębski wrote: > See e.g. http://repo.or.cz/?p=git/zerocommit.git;a=tree;hb=master;f=t Ah! You have the branch in the hb= parameter whereas I had HEAD in that one. Since HEAD is the default, I suppose I don't really need it. Indeed, if I use a URL like "http://site

Re: Complex gitweb URL

2016-07-20 Thread CLOSE Dave
Thanks, Jakub, for the quick response. On 07/20/16 02:20 PM, Jakub Narębski wrote: >> If I replace the hb=SHA argument with hb=HEAD, the URL still works. But >> I have no idea what I can use to replace the h=SHA argument. > > You can remove it. 'hb' (hash_base) and 'f' (filename) identify target

Re: Complex gitweb URL

2016-07-20 Thread Jakub Narębski
W dniu 2016-07-20 o 21:24, CLOSE Dave pisze: > I'm trying to create a URL that will always refer to the latest version > of a file stored under Gerrit. gitweb access is available. The man page > specification doesn't seem to work for me. Instead, I seem to need to > put most of the information i

Complex gitweb URL

2016-07-20 Thread CLOSE Dave
I'm trying to create a URL that will always refer to the latest version of a file stored under Gerrit. gitweb access is available. The man page specification doesn't seem to work for me. Instead, I seem to need to put most of the information into arguments (after the '?'). For example, the repo