From mboxrd@z Thu Jan 1 00:00:00 1970 From: john at keeping.me.uk (John Keeping) Date: Mon, 19 Mar 2018 22:16:21 +0000 Subject: Default view In-Reply-To: <2080901521486118@web2g.yandex.ru> References: <2080901521486118@web2g.yandex.ru> Message-ID: <20180319221621.GE2349@john.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.