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

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 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