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

Re: [PATCH GSoC 2/3] git-instaweb: Configure it to work with a global server root and projects list

From
Pavan Kumar Sunkara <pavan.sss1991@gmail.com>
Date
May 18, 2010, 18:56 UTC
Message-ID
<AANLkTilhdkw7v-jV9JNBx8qvGBCenieExRh_zVm3hAKq@mail.gmail.com>
In-Reply-To
<m3ljbhcp46.fsf@localhost.localdomain>
Show 12 quoted lines
> While I can agree with `instaweb.root' config variable to *override*
> the default, it should have sane default, and setting it should be not
> required to be able to run git-instaweb.  Therefore the 'install'
> target of main Makefile should either:
> a.) install gitweb into gitdir=$(sharedir)/gitweb, and make
>    instaweb.root be $(sharedir)/gitweb by default
> b.) install gitweb into $(gitwebdir), which only have $(sharedir)/gitweb
>    as default, and embed $(gitwebdir) in git-instaweb script when
>    building, so that it would be default value of instaweb.root
>
> This would probably mean replacing either @@sharedir@@ or @@gitwebdir@@
> placeholders in git-instaweb.sh when building git-instaweb.
Yeah I will do that.
Show 19 quoted lines
>> and the httpd.conf along with server logs and pid go into
>> '$(HOME)/.gitweb' directory.
>>
>> As there is no need to call git-instaweb in every git repository,
>> configure gitweb to get $projects_list from file '$(HOME)/.gitweb/list'
>> and $projectroot is ''
>>
>> Example of ~/.gitweb/list:
>> home%2Fpavan%2Fgit%2F.git Linus+Torvalds
>> home%2Fpavan%2Fgsoc%2F.git Pavan+Kumar+Sunkara
>
> This is quite a large change on how git-instaweb works.
>
> First, I think such change should be better left for a separate
> commit, splitting this one in two: one making git-instaweb use
> installed gitweb files, and installing gitweb files somewhere when
> installing git, and second changing how git-instaweb behave.
> "Do one thing, and do it well."  It would make easier to check
> if there are errors in the commit.
Ok.
Show 6 quoted lines
> Second, in my opinion it is not a good change at all.  Currently you
> can run "git instaweb" when inside git repository, and get a web
> browser (or a new tab in existing session of a running web browser)
> with current repository in it, to browse its history.  It is similar
> to running gitk (or other graphical history browser, like qgit, tig,
> etc.), or running "git log", but with web interface.

Yes. But this change is vital for the success of my GSoC project. I will explain why. If you remember, my GSoC project contains some functionalities like creating/cloning repositories which need a server which need to start outside git directory.

Until now, I thought to use git-instaweb to do this. But I realised now that it would be better if we have another script. So we need to have a different "git-client" script which starts this client.

What do you say ?
Show 11 quoted lines
> Now, current git-instaweb behavior has its quirks, but having
> git-instaweb show _current_ repository is a very important feature,
> and I'd rather we didn't lose it in transition.
>
> So in my opinion it would be better to just update git-instaweb and
> generating git-instaweb to make use of installed gitweb and installed
> gitweb files, but do not change organization of generated files; just
> instead of gitweb.cgi there should be gitweb_config.perl with
> appropriate configuration to show current repository.  And of course
> there would be no gitweb files in $GIT_DIR/gitweb (in .git/gitweb)
> directory.
Ok. Sure I will do it.
Thanks
- Pavan
Previous: Jakub NarebskiNext: Jakub Narebski
Message 6 of 12 in “[PATCHv2 GSoC 1/3] gitweb: Set default destination directory for installing gitweb in Makefile”
  1. Pavan Kumar SunkaraMay 15, 2010
  2. 2/3 git-instaweb: Configure it to work with a global server root and projects listPavan Kumar Sunkara, May 15, 2010
  3. Dévai TamásMay 16, 2010
  4. Pavan Kumar SunkaraMay 17, 2010
  5. Jakub NarebskiMay 18, 2010
  6. Pavan Kumar SunkaraMay 18, 2010
  7. Jakub NarebskiMay 18, 2010
  8. Pavan Kumar SunkaraMay 19, 2010
  9. Jakub NarebskiMay 19, 2010
  10. Eric WongMay 18, 2010
  11. 3/3 git-web--browse: Add support for google chromePavan Kumar Sunkara, May 15, 2010
  12. Erik Faye-LundMay 16, 2010

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.