about summary refs log tree commit diff
path: root/ui-tree.c
diff options
context:
space:
mode:
authorJohan Herland <johan@herland.net>2010-06-10 01:09:26 +0200
committerLars Hjemli <hjemli@gmail.com>2010-06-19 10:40:22 +0200
commit0ff143df7043b7dd87c31c50fa875bc96d1a7779 (patch)
treed1625ba2aafed1ddfebc429921abdbb0d692042f /ui-tree.c
parentui-shared: Remove needless cgit_get_cmd() call, and refactor hc() accordingly (diff)
downloadcgit-pink-0ff143df7043b7dd87c31c50fa875bc96d1a7779.tar.gz
cgit-pink-0ff143df7043b7dd87c31c50fa875bc96d1a7779.zip
struct cgit_cmd: Differentiate between various usages of ctx.qry.path
For many commands/pages (e.g. 'tree', 'diff', 'plain', etc.), the
ctx.qry.path argument is interpreted as a path within the "virtual" project
directory structure. However, for some other commands (notably 'refs', and
the clone-related commands) ctx.qry.path is used in a different context (as
a more or less "real" path within the '.git' directory).

This patch differentiates between these two usages of ctx.qry.path, by
introducing a new variable - ctx.qry.vpath - which is equal to ctx.qry.path
in the former case, and NULL in the latter.

This will become useful in future patches when we want various pages and the
links between them to preserve existing in-project paths.

Signed-off-by: Johan Herland <johan@herland.net>
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'ui-tree.c')
0 files changed, 0 insertions, 0 deletions
5 20:09:34 -0400'>2019-09-05Handle lack of Content-TypeJune McEnroe 2019-09-05Use CURLINFO_CONTENT_TYPEJune McEnroe 2019-09-05Decode entities in titlesJune McEnroe 2019-09-05Print title as soon as it's availableJune McEnroe 2019-09-05Use CURL_PREFIX to set flagsJune McEnroe 2019-09-05Add titleJune McEnroe 2019-09-04Add Avorter n'est pas tuerJune McEnroe 2019-08-29Unset executable on shell scriptsJune McEnroe 2019-08-29Add long-missing setopt to bin.7June McEnroe 2019-08-29Add editJune McEnroe