summaryrefslogtreecommitdiff
path: root/filters
diff options
context:
space:
mode:
authorLars Hjemli <hjemli@gmail.com>2011-06-20 20:59:10 +0200
committerLars Hjemli <hjemli@gmail.com>2011-06-20 20:59:10 +0200
commite95c70d4ea997d1217d5c81cb3b640f3fa025df1 (patch)
tree36bb5cb276494ae1c7b813969f5381bffb06a3d4 /filters
parentd711de55280c3c9c10cfda4e24c8f3b3015217b2 (diff)
downloadcgit-e95c70d4ea997d1217d5c81cb3b640f3fa025df1.tar.gz
cgit-e95c70d4ea997d1217d5c81cb3b640f3fa025df1.tar.bz2
cgit-e95c70d4ea997d1217d5c81cb3b640f3fa025df1.zip
Only guess default branch when a repo page is requested
There's no need to invoke guess_defbranch() for each repo during scan-path, since repo.defbranch is only used when repo content is being displayed. Also, some users prefer to register their projects manually in cgitrc but they got no benefit from the new repo.defbranch handling. This patch tries to rectify these issues by only invoking guess_defbranch() when needed, regardless of how the repo was registered. Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'filters')
0 files changed, 0 insertions, 0 deletions
2013-04-08ui-refs.c: Refactor print_tag()Lukas Fleischer1-29/+27 2013-04-08ui-refs.c: Remove global header variableLukas Fleischer1-6/+0 2013-04-08html.c: Replace strdup() with xstrdup()Lukas Fleischer1-5/+2 2013-04-08Always #include corresponding .h in .c filesJohn Keeping22-8/+20 2013-04-08cgit.mk: fix dependency handlingJohn Keeping1-0/+8 2013-04-08Makefile: re-include cgit.conf in cgit.mkJohn Keeping1-0/+2 2013-04-08Do not unnecessarily strdup() environment variablesLukas Fleischer1-15/+10 2013-04-08Maŕk cgit_environment members constLukas Fleischer2-12/+12 2013-04-08Return const char * in cgit_{httpscheme, hosturl, rooturl}()Lukas Fleischer3-9/+9 2013-04-08Update git to v1.8.2.1John Keeping4-5/+6 2013-04-07ui-blob: don't segfault when no path is givenJohn Keeping1-1/+1 2013-03-20Convert pager navigation into a unordered listLukas Fleischer3-9/+20 2013-03-20Makefile: remove CGIT-CFLAGS files in clean stageJason A. Donenfeld1-1/+1 2013-03-20ui-summary.c: Move urls variable into print_urls()Lukas Fleischer1-6/+14 2013-03-20Fix colspan valuesLukas Fleischer3-14/+28 2013-03-20html: check return value of writeJason A. Donenfeld1-2/+3 2013-03-20ui-shared: squelch compiler warning.Jason A. Donenfeld1-0/+1 2013-03-20cgit.mk: Use SHELL_PATH_SQ to run gen-version.shJohn Keeping1-1/+1 2013-03-20cgit.mk: don't rebuild everything if CGIT_VERSION changesJohn Keeping1-1/+8 2013-03-20ui-patch: use cgit_version not CGIT_VERSIONJohn Keeping1-1/+1 2013-03-20Makefile: re-use Git's Makefile where possibleJohn Keeping3-119/+80