Default view

gnidorah at ya.ru gnidorah at ya.ru
Tue Mar 20 17:31:43 CET 2018


Got it. Thanks much for the answer!

20.03.2018, 01:16, "John Keeping" <john at keeping.me.uk>:
> On Mon, Mar 19, 2018 at 10:01:58PM +0300, Alex Ivanov wrote:
>>  How to set a default view? When I open repo link a summary view is
>>  opened by default, but I want to have tree view as default.
>
> You'll have to patch CGit if you want to do that, out of the box you can
> set enable-index-links=1 in your cgitrc to add a tree link in the repo
> list.
>
> I don't think you can easily make the plain repo url display the tree
> because there wouldn't be any way to get to the summary view without
> further changes, but it should be possible to swap the
> cgit_summary_link() call in ui-repolist.c to cgit_tree_link() so that
> the primary link in the repo list points at the tree view.


More information about the CGit mailing list