git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [RFC] gitweb: Add committags support (take 2)

From
Jakub Narebski <jnareb@gmail.com>
Date
Dec 6, 2006, 12:51 UTC
Message-ID
<200612061351.02712.jnareb@gmail.com>
In-Reply-To
<7vmz64ortu.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano wrote:
Show 13 quoted lines
> Jakub Narebski <jnareb@gmail.com> writes:
>
>> I have thought about putting %committags and @committags before
>> loading config file
>>   do $GITWEB_CONFIG if -e $GITWEB_CONFIG;
>> which can load config file depending on the project, but perhaps
>> it is too complicated solution.
> 
> I think you are talking about a gitweb-instance wide
> customization, but that's not what I meant.  I meant per-project
> configuration where w/git-gui.git and w/git.git are served by
> the same instance of gitweb but have pointers to different issue
> trackers.

It looks like the hardest part with committags support wouldn't be the actual implementation of it, but coming with easy and fast way to set up those committags.

gitweb-xmms2 project from which the idea of committags support in gitweb came (I think, correct me if I'm wrong) avoids this issue by having issue tracker / bug tracker the same for all projects served by single gitweb installation; the configuration is site-wide, and there is no per project committags configuration.

I have imagined the following twofold solution.
1. Make it easier to have per repository gitweb configuration, for
   example by having gitweb configuration file in GIT_DIR for a project,
   "gitweb_conf.perl" by default:
  our $GITWEB_REPO_CONFIG = $ENV{'GITWEB_REPO_CONFIG'} ||
  	"++GITWEB_CONFIG++";
  do "$projectroot/$project/$GITWEB_REPO_CONFIG"
  	if -e "$projectroot/$project/$GITWEB_CONFIG";
2. Put the configuration in config file, using/like %features support.
   For example gitweb.committags.<committag name> would hold parameters
   for <committag>. Committags sequence would be given by sequence of
   entries in config file. Comittags without options would have sole
   variable entry (which I think is equivalent to being bool variable
   and having 1 or 'yes' as value).
   The trouble with this approach is not overriding defaults provided
   while still turning on/off specific committag. And of course the fact
   that for that we need rather config reader in Perl (Git.pm or
   gitweb).
What do you think about it? Junio? Pasky?
-- 
Jakub Narebski
Previous: Junio C HamanoNext: Junio C Hamano
Message 7 of 11 in “[RFC] gitweb: Add committags support (take 2)”
  1. Jakub NarebskiDec 3, 2006
  2. Junio C HamanoDec 4, 2006
  3. Jakub NarebskiDec 4, 2006
  4. Junio C HamanoDec 4, 2006
  5. Jakub NarebskiDec 4, 2006
  6. Junio C HamanoDec 5, 2006
  7. Jakub NarebskiDec 6, 2006
  8. Junio C HamanoDec 6, 2006
  9. Jakub NarebskiDec 6, 2006
  10. Junio C HamanoDec 6, 2006
  11. Jakub NarebskiDec 6, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.