about summary refs log tree commit diff
path: root/parsing.c
diff options
context:
space:
mode:
authorLars Hjemli <hjemli@gmail.com>2008-12-03 17:34:23 +0100
committerLars Hjemli <hjemli@gmail.com>2008-12-03 17:34:23 +0100
commita1b01b2513510f8f93f7f8ca39969002cd496a19 (patch)
tree143e569416a89b31de6f96e8e79f8841c24dd935 /parsing.c
parentui-repolist: handle empty agefiles (diff)
downloadcgit-pink-a1b01b2513510f8f93f7f8ca39969002cd496a19.tar.gz
cgit-pink-a1b01b2513510f8f93f7f8ca39969002cd496a19.zip
ui-log: try to disambiguate ref names
The 'h' querystring parameter in cgit is normally used to specify
a branch (i.e. a ref below refs/heads/), but if a repository contains
a tag with the same name as a branch the output from ui-log would use
the tag as start-revision.

This patch tries to fix the issue by checking if the specified ref is
valid as a branch name; if so, the full refname is used in the call
to setup_revisions().

Noticed-by: Takamori Yamaguchi <akschar@gmail.com>
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions
d>destruc7i0n 2019-02-11Local file supportdestruc7i0n 2018-11-11Let's make this usable again!destruc7i0n 2018-02-23Allow configurable discord formatArcensoth 2018-02-23Revert example tellraw format to mimic the originalArcensoth 2018-02-23Update readme with new tellraw config optionArcensoth 2018-02-23Allow configurable tellraw formatArcensoth 2018-02-23Allow config file to be passed as a parameterArcensoth