Thread (25 messages) 25 messages, 3 authors, 2016-06-15

Re: [PATCHv2 GSOC 03/11] gitweb: Create Gitweb::Git module

From: Jakub Narebski <hidden>
Date: 2016-06-15 22:49:08

On Thu, 15 Jul 2010, Pavan Kumar Sunkara wrote:
Create a Gitweb::Git module in  'gitweb/lib/Gitweb/Git.pm'
to deal with running git commands (and also processing output
of git commands with external programs) from gitweb.

This module is intended as standalone module, which does not require
(include) other gitweb' modules to avoid circular dependencies.  That
is why it includes $GIT variable, even though this variable is
configured during building gitweb.  On the other hand $GIT is more
about git configuration, than gitweb configuration.

Subroutines moved:
	evaluate_git_version
	git_cmd
	quote_command

Update gitweb/Makefile to install Gitweb::Git module alongside gitweb

Signed-off-by: Pavan Kumar Sunkara <redacted>
---
This change (this refactoring) is fairly uncontroversial...
quoted hunk ↗ jump to hunk
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
[...]
quoted hunk ↗ jump to hunk
-# core git executable to use
-# this can just be "git" if your webserver has a sensible PATH
-our $GIT = "++GIT_BINDIR++/git";
+# $GIT is from Gitweb::Git
+$GIT = "++GIT_BINDIR++/git";
[...]
quoted hunk ↗ jump to hunk
+# core git executable to use
+# this can just be "git" if your webserver has a sensible PATH
+our $GIT;
...but for addressing the discussion about whether to put (or rather
leave) description of $GIT variable in main gitweb/gitweb.perl script,
to have description of all build-time configuration variables in one
place.  You should at least say something about this issue either in
commit message, or in the comments for this patch, in my opinion.

-- 
Jakub Narebski
Poland
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help