mirror of
git://git.yoctoproject.org/layerindex-web.git
synced 2025-07-19 20:59:01 +02:00
![]() Some git web interfaces use different paths for files (blobs) and directories when it comes to browsing; this means we need to have a separate field for the base URL for files. Additionally, Gitweb typically puts the path within the URL instead of at the end (although the parameters can be reordered) and cannot handle the file parameter (f=) being specified with no value. So, to add some flexibility, add the ability to use a positional macro %path% to optionally specify where to put the path. If needed, square brackets can be used in conjunction with %path% to exclude parts of the string when there is no path, i.e. we want to browse the root. For example, the following base URL: http://git.example.com/?p=somerepo.git;a=tree;[;f=%path%];hb=HEAD would be translated to this with a path of "path/to/dir": http://git.example.com/?p=somerepo.git;a=tree;f=path/to/dir;hb=HEAD and this if no path were specified: http://git.example.com/?p=somerepo.git;a=tree;hb=HEAD Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> |
||
---|---|---|
.. | ||
static | ||
templatetags | ||
__init__.py | ||
about.html | ||
admin.py | ||
detail.html | ||
forms.py | ||
index.html | ||
models.py | ||
rawrecipes.txt | ||
recipedetail.html | ||
recipes.html | ||
simplesearch.py | ||
submitemail.txt | ||
submitlayer.html | ||
submitthanks.html | ||
update.py | ||
urls.py | ||
views.py |