Default view

John Keeping john at keeping.me.uk
Mon Mar 19 23:16:21 CET 2018


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