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

Re: What's cooking in gitweb (20 Sep 2008)

From
Jakub Narebski <jnareb@gmail.com>
Date
Sep 22, 2008, 12:43 UTC
Message-ID
<200809221443.38689.jnareb@gmail.com>
In-Reply-To
<cb7bb73a0809211322q5aa6d8ex88651aa33a6c2688@mail.gmail.com>
Giuseppe Bilotta wrote:
> > 1. "gitweb pathinfo improvements" by Giuseppe Bilotta
[...]
Show 9 quoted lines
> >   Need some refinement, especially with respect to _generating_
> >   path_info URLs inside gitweb.  Some patches (2 and 5) does not
> >   need correction, and probably should be sent as separate series.
> >   Author promised to resend series, if I remember correctly.
> 
> I'll resend the whole series (plus an additional patch to fix an
> aesthetical issue I found recently) as soon as I fix the url
> generation for the dotted filename corner case (which by re-reading
> the past emails seemed to be the only significant issue, correct?).
I think it was the only significant issue (besides the fact that
two mentioned patches could be in separate series).  To be more
exact the issue was with generating gitweb URLs for sets of
parameters which cannot be represented as path_info URL.  One
example was filename with '..' in it, which cannot be used in
the following path_info form:
  $hash_parent_base:$file_parent..$hash_base:$filename
but it can be used in 'no name change' form
  $hash_parent_base..$hash_base:$filename
This requires fallback to 'query' form URL.

Other example was branch name with the same name as one of gitweb actions, which require action to be stated explicitly even if it is default action and otherwise could be omitted.

> Should be shortly.
I see that it is now. Thanks.
> > 2. "[PATCH] gitweb: shortlog now also obeys $hash_parent"
> > by Giuseppe Bilotta 
[...]
Show 9 quoted lines
> > More important fact is that I'd very much like for _all_ log-like
> > views (perhaps with exception of feeds: Atom and RSS) to implement
> > this feature.  This could be done by either doing it all in the same
> > commit, doing commit series changing 'shortlog', 'log' and 'history'
> > separately, or what I would prefer actually, to refactor generation
> > of log-like views to use single worker/engine subroutine.
> 
> I agree that refactoring is probably the best idea. It will also take
> me some more time ;)

But it has the advantage of making it easier to add more log-like views, like 'log' like view for the 'history' view, i.e. --pretty=full like view with path limiting.

I have thought about doing the refactoring (it is/was on my long-term
TODO list for gitweb), but I haven't even found good way to code it,
to be flexible but not too generalized.  Callbacks, perhaps?
 
> BTW, I haven't heard from Lea, so can I just assume that my patches
> don't touch any of her caching improvements?
-- 
Jakub Narebski
Poland
Previous: Giuseppe BilottaNext: Giuseppe Bilotta
Message 4 of 5 in “What's cooking in gitweb (20 Sep 2008)”
  1. Jakub NarebskiSep 20, 2008
  2. Junio C HamanoSep 21, 2008
  3. Giuseppe BilottaSep 21, 2008
  4. Jakub NarebskiSep 22, 2008
  5. Giuseppe BilottaSep 22, 2008

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.