git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jakub Narebski <jnareb@gmail.com>
To: git@vger.kernel.org
Subject: Re: gitweb.cgi feature request: project list "last change" column	to display last change of all heads.
Date: Sun, 15 Oct 2006 14:17:37 +0200	[thread overview]
Message-ID: <egt8sk$99u$1@sea.gmane.org> (raw)
In-Reply-To: 4531FC77.6010004@adelaide.edu.au

Pierre Marc Dumuid wrote:

>  I am working with the Cinelerra-CV group (cvs.cinelerra.org) and we are 
>  starting to use git to develop new patches.  Someone has offered to 
>  mirror our git branches to share amongst ourselves at 
>  http://www.pipapo.org/gitweb.
>  
>  The annoying thing is that in our mirrored personal repositories, we 
>  switch from head to head and push new features in different head, and 
>  then wait for the other developers to review.  At the moment, the 
>  getweb.cgi script only shows the "Last Change" for the current branch, 
>  and not all branches, (i.e. it's currently showing "13 days ago" for 
>  cinelerra-pmdumuid, whilst if you click the summary, you'll see I 
>  actually extended one of the branches only "24 hours ago".

This feature is planned (even if I forgot to mention it in the latest
"[RFC] gitweb wishlist and TODO list"[*1*] thread), but for performance
reasons it waits for git-for-each-ref to be in released version of git, as
it should be used for projects list to not be generated too slow.

But we could add it (although git is now in freezer before 1.4.3 release).
I was thinking about using 
  $feature{'lastchange'}{'default'} = HEAD | <branchname> | undef
where undef means search all branches for latest commit.

>  2nd feature request it the ability to browse to the next / previous 
>  commit when looking at a commitdiff...
 
First, merges can have more than one parent, so "previous" (or rather
"parent") can be ambiguous. Well, we could use first parent... But even
now it is fairly easy to go to the parent commitdiff: click on "commit"
link in the top navigation bar, or on the subject of commit; then click
on the "parent" link in the commit view; then click on "commitdiff" link
in the top navigation bar, or on the subject of commit.

Git philosophy and design precludes any kind of "next" link. Commit object
has only links to parents, never to children. If one really, really need
"next" link, one would need to save branch and where on branch we are
(in the git-name-rev way, e.g. b=HEAD~10) and pray somebody didn't update
the branch.

It should be quite easy to add commit+commitdiff view, though.

[*1*] http://marc.theaimsgroup.com/?t=115082282700003&r=1&w=2
      Msg-Id: <egdge3$t12$1@sea.gmane.org>
-- 
Jakub Narebski
Warsaw, Poland
ShadeHawk on #git

      parent reply	other threads:[~2006-10-15 12:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-15  9:16 gitweb.cgi feature request: project list "last change" column to display last change of all heads Pierre Marc Dumuid
2006-10-15 10:28 ` Junio C Hamano
2006-10-15 12:17 ` Jakub Narebski [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='egt8sk$99u$1@sea.gmane.org' \
    --to=jnareb@gmail.com \
    --cc=git@vger.kernel.org \
    /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).