So it is intended, I guess, more like git-instaweb or webmin, not like
administrative parts of Girocco (or repo.or.cz), GitHub, Gitorious or
InDefero. Probably authentication and authorization would not be needed
then, if it is to be run as web interface but locally...
Well, there is also copy'n'paste of code as a last resort.
I guess that git-gui and gitk duplicate some of their functionality
(and only git-gui is split; gitk is monolitic single file, even larger
than gitweb: 320KB vs 220KB).
^^^^^^^^^^-- ???
But what?
Yes, it is not as elegant as "require", and you have to catch errors
in "do"-ed file yourself (as described at the end of `perldoc -f do`).
True.
Currently to install gitweb you have to copy *one* script, and a few
static files (2 x image, CSS, JavaScript). You can configure it using
"make gitweb" with appropriate options, you can simply edit gitweb script,
or you can leave this to the gitweb config file.
There are quite a few requirements that gitweb should fulfill:
* It must be able to install without admin rights, and requirng to
install Perl modules system wide. We can rely on core Perl modules,
on git core and possibly on perl-Git being installed.
* It must be able to install without editing web server config file,
nor setting environment variables for the user account that is used
by the web server (e.g. 'apache', or 'web', or 'nobody').
* Possibly also it should be easy to install gitweb "by hand", without
requirng to use build system.
* Any automatic installation target must take into account that gitweb
must run on many web servers (Apache as CGI, Apache as mod_perl, nginx,
lighttpd, IIS, Moongose, Webrick,...) and on many distributions and
operating systems (where location of server, and server configuration
might differ). But I guess we can borrow some code from git-instaweb.sh
Also there is a question _how_ to split gitweb into modules,
e.g. whether to follow SVN::Web example on how gitweb (Git::Web?) should
be split. But I guess any splitting would suffice; we need to provide
a way to build and install split gitweb.
Split can be as simple as:
Makefile, or Makefile.PL, or Build.PL
gitweb.perl
static/git-logo.png
static/git-favicon.png
static/gitweb.css
static/gitweb.js
lib/Gitweb/Utils.pm (Gitweb::Utils)
lib/Gitweb/Editor.pm (Gitweb::Editor, for GSoC2010, if it gets accepted)
--
Jakub Narebski
Poland
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html