aboutsummaryrefslogtreecommitdiff
path: root/html.h
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@gmail.com>2016-06-25 21:42:33 +0000
committerRichard Maw <richard.maw@gmail.com>2016-07-13 19:09:37 +0000
commitd25bfb99f9d1f02dcaf1cae3ffce35b9ea5471fd (patch)
tree0cd065fbdc7f77bf0ce834e1bdb11a88410ab010 /html.h
parente407fe721380dddca7527611342d5aef49c28f33 (diff)
downloadcgit-d25bfb99f9d1f02dcaf1cae3ffce35b9ea5471fd.tar
cgit-d25bfb99f9d1f02dcaf1cae3ffce35b9ea5471fd.tar.gz
cgit-d25bfb99f9d1f02dcaf1cae3ffce35b9ea5471fd.zip
Guess the default branch based on current namespace
resolve_ref_unsafe() can't be told to be namespace aware, so we need to prepend the namespace beforehand. Additionally, we need to add the RESOLVE_REF_NO_RECURSE flag, since otherwise if the commit that is pointed to exists in the root namespace, it will opt to return that rather than the value in the namespace, presumably preferring shorter ref names to longer ones. Signed-off-by: Richard Maw <richard.maw@gmail.com>
Diffstat (limited to 'html.h')
0 files changed, 0 insertions, 0 deletions