From mboxrd@z Thu Jan 1 00:00:00 1970 From: gnidorah at ya.ru (gnidorah at ya.ru) Date: Tue, 20 Mar 2018 19:31:43 +0300 Subject: Default view In-Reply-To: <20180319221621.GE2349@john.keeping.me.uk> References: <2080901521486118@web2g.yandex.ru> <20180319221621.GE2349@john.keeping.me.uk> Message-ID: <573901521563503@web25o.yandex.ru> Got it. Thanks much for the answer! 20.03.2018, 01:16, "John Keeping" : > 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.