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

Re: git instaweb - share all project files

From
TATrenton D. Adams <trenton.d.adams@gmail.com>
Date
Apr 10, 2013, 22:42 UTC
Message-ID
<CAMg8Y2qm9FuuMZh7jsAEyr=joUbsp=5V_zU5U86sW0Y=f2OVBA@mail.gmail.com>
In-Reply-To
<51659B5B.6000707@gmail.com>
#1 would actually work.  Though long term it would be cool to view it
with all the most recent commit information, kind of like github does.
 You know, showing "updated 4 days ago".
On Wed, Apr 10, 2013 at 11:03 AM, Jakub Narębski <jnareb@gmail.com> wrote:
Show 46 quoted lines
> 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:
>
> 1. Configure gitweb ran by git-instaweb to have 'worktree' link in
>    the action bar pointing to 'file:///path/to/repo' (or rather
>    'file:///path/to/workdir') via 'actions' feature, adding e.g.
>
>      $feature{'actions'}{'default'} =
>         [('worktree', 'file:///path/to/repo', 'summary')];
>
>    to gitweb_config.perl / gitweb.conf used by git-instaweb's gitweb.
>
>    This of course works only for local use, so either git-instaweb
>    or gitweb (in config) should check that we use it locally
>    (e.g. if hostname is 'localhost' or equivalent).
>
> 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.
>
> 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).
>
>
> Unfortunately solution 1.) which is simplest is not enough for your
> situation...
>
> I can add 3.) to my gitweb TODO, but I don't know when I would be able
> to get to implementing it.
> --
> Jakub Narębski
>
Previous: Jakub NarębskiNext: Jakub Narębski
Message 3 of 6 in “git instaweb - share all project files”
  1. Trenton D. AdamsApr 7, 2013
  2. Jakub NarębskiApr 10, 2013
  3. Trenton D. AdamsApr 10, 2013
  4. Jakub NarębskiApr 13, 2013
  5. Eric WongApr 13, 2013
  6. Jakub NarębskiApr 14, 2013

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.