[PATCH 2/2] Add feature: obtain repo section from git config

larsh at hjemli.net larsh at hjemli.net
Mon Jun 6 19:48:43 CEST 2011


On Mon, Jun 06, 2011 at 07:38:13PM +0200, Ferry Huberts wrote:
> On 06/06/2011 07:13 PM, larsh at hjemli.net wrote:
> > * If we want to support reading repo-config from $GITDIR/config, why not
> >   implement all the options supported by a $GITDIR/cgitrc?
> 
> I'd prefer not doing this (everything in $GITDIR/config). I think it's
> better to have $GITDIR/cgitrc files that hold the repo settings.

I agree.


> There is this setting called repo.path though that then is kind of an
> annoyance to set and update. If we always use $GITDIR/cgitrc files then
> the repo.path setting could be automatically deduced by cgit.

For repo-specific cgitrc-files, repo.path (and repo.url) are automatically
set (see http://hjemli.net/git/cgit/tree/cgitrc.5.txt#n446).

--
larsh




More information about the CGit mailing list