From: "Jakub Narębski" <jnareb@gmail.com>
To: "Jakub Narębski" <jnareb@gmail.com>
Cc: "Trenton D. Adams" <trenton.d.adams@gmail.com>, git@vger.kernel.org
Subject: Re: git instaweb - share all project files
Date: Sun, 14 Apr 2013 12:35:37 +0200 [thread overview]
Message-ID: <516A8679.8090604@gmail.com> (raw)
In-Reply-To: <51659B5B.6000707@gmail.com>
W dniu 10.04.2013 19:03, Jakub Narębski pisze:
> W dniu 07.04.2013 05:02, Trenton D. Adams pisze:
>
>> On that first page that shows up, it shows the .git folder. It would
>> 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)
>
> 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).
>
> 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 protected
> 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 or
gitweb from URL alone...
...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 files?
--
Jakub Narębski
prev parent reply other threads:[~2013-04-14 10:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-07 3:02 git instaweb - share all project files Trenton D. Adams
2013-04-10 17:03 ` Jakub Narębski
2013-04-10 22:42 ` Trenton D. Adams
2013-04-13 15:21 ` Jakub Narębski
2013-04-13 20:02 ` Eric Wong
2013-04-14 10:35 ` Jakub Narębski [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=516A8679.8090604@gmail.com \
--to=jnareb@gmail.com \
--cc=git@vger.kernel.org \
--cc=trenton.d.adams@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).