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

Re: [PATCH GSoC] gitweb: Add support for enabling 'write' feature

From
Jakub Narebski <jnareb@gmail.com>
Date
Jun 22, 2010, 11:12 UTC
Message-ID
<201006221312.57801.jnareb@gmail.com>
In-Reply-To
<1277159424-6351-1-git-send-email-pavan.sss1991@gmail.com>
On Tue, 22 June 2010, Pavan Kumar Sunkara wrote:
Show 10 quoted lines
> Provide $feature{'write'} to enable the 'write'
> functionalities for gitweb. While outputting HTML
> it checks for gitweb_check_feature('write') and if
> it's enabled, proper links will appear along with
> the HTML divs.
> 
> Signed-off-by: Pavan Kumar Sunkara <pavan.sss1991@gmail.com>
> ---
>  This patch is based on my previous patch series.
>  http://mid.gmane.org/1277157648-6029-1-git-send-email-pavan.sss1991@gmail.com
It looks a bit like this email is send by accident...
  
Show 27 quoted lines
>  And this is my first patch in the preparation for integration
>  of write functionality into gitweb.
> 
>  gitweb/lib/Gitweb/Config.pm |   11 +++++++++++
>  1 files changed, 11 insertions(+), 0 deletions(-)
> 
> diff --git a/gitweb/lib/Gitweb/Config.pm b/gitweb/lib/Gitweb/Config.pm
> index c528595..87f0ba6 100644
> --- a/gitweb/lib/Gitweb/Config.pm
> +++ b/gitweb/lib/Gitweb/Config.pm
> @@ -203,6 +203,17 @@ our %feature = (
>  	# (an array) or gitweb_check_feature(<feature>) to check if <feature>
>  	# is enabled
>  
> +	# Enable the 'write' functionalities for gitweb. While outputting HTML
> +	# it checks for gitweb_check_feature('write') and if it's enabled,
> +	# proper links will appear along with the HTML divs.
> +	
> +	# To enable system wide have in $GITWEB_CONFIG
> +	# $feature{'write'}{'default'} = [1];
> +	# Project specific override is not supported.
> +	'write' => {
> +		'override' => 0,
> +		'default' => [0]},
> +
>  	# Enable the 'blame' blob view, showing the last commit that modified
>  	# each line in the file. This can be very CPU-intensive.
...as there is nothing non-trivial in there.
-- 
Jakub Narebski
Poland
Previous: Pavan Kumar SunkaraNext: Pavan Kumar Sunkara
Message 14 of 21 in “gitweb: Split gitweb into modules”
  1. 00/11 gitweb: Split gitweb into modulesPavan Kumar Sunkara, Jun 21, 2010
  2. 01/11 gitweb: fix esc_urlPavan Kumar Sunkara, Jun 21, 2010
  3. 02/11 gitweb: Prepare for splitting gitwebPavan Kumar Sunkara, Jun 21, 2010
  4. 03/11 gitweb: Create Gitweb::Git modulePavan Kumar Sunkara, Jun 21, 2010
  5. 04/11 gitweb: Create Gitweb::Config modulePavan Kumar Sunkara, Jun 21, 2010
  6. 05/11 gitweb: Create Gitweb::Request modulePavan Kumar Sunkara, Jun 21, 2010
  7. 06/11 gitweb: Create Gitweb::Escape modulePavan Kumar Sunkara, Jun 21, 2010
  8. 07/11 gitweb: Create Gitweb::RepoConfig modulePavan Kumar Sunkara, Jun 21, 2010
  9. 08/11 gitweb: Create Gitweb::View modulePavan Kumar Sunkara, Jun 21, 2010
  10. 09/11 gitweb: Create Gitweb::Util modulePavan Kumar Sunkara, Jun 21, 2010
  11. 10/11 gitweb: Create Gitweb::Format modulePavan Kumar Sunkara, Jun 21, 2010
  12. 11/11 gitweb: Create Gitweb::Parse modulePavan Kumar Sunkara, Jun 21, 2010
  13. gitweb: Add support for enabling 'write' featurePavan Kumar Sunkara, Jun 21, 2010
  14. Jakub NarebskiJun 22, 2010
  15. Pavan Kumar SunkaraJun 22, 2010
  16. Jakub NarebskiJun 22, 2010
  17. Jakub NarebskiJun 22, 2010
  18. Pavan Kumar SunkaraJun 22, 2010
  19. Jakub NarebskiJun 22, 2010
  20. Pavan Kumar SunkaraJun 22, 2010
  21. Jakub NarebskiJun 23, 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.