From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?B?SmFrdWIgTmFyxJlic2tp?= Subject: Re: git instaweb - share all project files Date: Sun, 14 Apr 2013 12:35:37 +0200 Message-ID: <516A8679.8090604@gmail.com> References: <51659B5B.6000707@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: "Trenton D. Adams" , git@vger.kernel.org To: =?UTF-8?B?SmFrdWIgTmFyxJlic2tp?= X-From: git-owner@vger.kernel.org Sun Apr 14 12:35:50 2013 Return-path: Envelope-to: gcvg-git-2@plane.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1URKHj-0002qF-8l for gcvg-git-2@plane.gmane.org; Sun, 14 Apr 2013 12:35:47 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751564Ab3DNKfn convert rfc822-to-quoted-printable (ORCPT ); Sun, 14 Apr 2013 06:35:43 -0400 Received: from mail-ea0-f182.google.com ([209.85.215.182]:45021 "EHLO mail-ea0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751375Ab3DNKfm (ORCPT ); Sun, 14 Apr 2013 06:35:42 -0400 Received: by mail-ea0-f182.google.com with SMTP id q15so1830445ead.13 for ; Sun, 14 Apr 2013 03:35:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:cc :subject:references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=VL43ts2n/k3+U42YqNkCEfD1hDIiauQC8EOr5cAWK8M=; b=TFRAGQkjMH158LVR+zJ2gdSf81BBVEMN/HUpVbTMdkaDvmty6B5+D37HETpTCACgNe aAHY+wUmrWh/lX504a7bm48UjdYeajOP88/V66+Hc8Fz0UPZABNZL8IryBWXvhHP9BIg GAVC5wvLT6qBa/nPyEMz9AYR9Z8yLCtnr3cTzVOMjo5bUkJ7o27lamFR1GVcuv6uoLZp 2lli/iyqw26MZkmkeinkFXy7McbCZzJ3gTejP3cXXgz0vMcYoQufDQX8NkEBbQjklaP0 Ra/HqAFivLfCvtyqdp2OT2V+EZWgz0F+f3MXCY6VvEo5IcKgle8gxrI8veWD/vGEJ61p hJ/A== X-Received: by 10.14.110.198 with SMTP id u46mr49011701eeg.41.1365935740648; Sun, 14 Apr 2013 03:35:40 -0700 (PDT) Received: from [192.168.1.14] (dji243.neoplus.adsl.tpnet.pl. [83.23.242.243]) by mx.google.com with ESMTPS id cd3sm20877253eeb.6.2013.04.14.03.35.38 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 14 Apr 2013 03:35:39 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130329 Thunderbird/17.0.5 In-Reply-To: <51659B5B.6000707@gmail.com> X-Enigmail-Version: 1.5.1 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: W dniu 10.04.2013 19:03, Jakub Nar=C4=99bski pisze: > W dniu 07.04.2013 05:02, Trenton D. Adams pisze: >=20 >> On that first page that shows up, it shows the .git folder. It woul= d >> be kind of nice if it shared out both the git repo and the actual >> current project files. I frequently have stuff I'd like to see in a >> web browser, and even requires one (i.e. Navigating to >> file:///home/blah/blah doesn't work; ajax requests for example) >=20 > There are a few possible solutions, from simplest to most complicated= : [...] > 2. In the web server configuration generated by git-instaweb, perhaps > as an option, add serving of worktree (with mod_autoindex aka. > 'Options +Indexes' for Apache2, and equivalent solutions for *all* > other supported web servers: lighttpd, mongoose, plack, webrick). >=20 > This may require some fiddling with URI rewriting, or change of > gitweb URI, to be able to have both worktree index and gitweb > script (gitweb is now under '/'), so it should probably be protect= ed > by an option to git-instaweb. The trouble (besides writing the same code for 5 web servers) is that you have to make web server detect whether you want to access workdir o= r gitweb from URL alone... =2E..and still you wouldn't have nice UI integration. > 3. Add proper support to gitweb: add 'worktree' action (similar to > 'tree' action / view). Probably needs to be made somewhat > configurable (and of course enabled in git-instaweb). I wonder if this should be solved via new actions, for example 'worktree' and 'file' (which could also be a solution to problem in 2.) via URI rewriting), or via new symbolic "hash" name, for example 'WORKTREE' (like 'HEAD'). Hmmm... while at it, perhaps we can add browsing of INDEX version of fi= les? --=20 Jakub Nar=C4=99bski