Re: searching for git commit hash

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: Peter Geoghegan <peter(at)2ndquadrant(dot)com>
Cc: Bruce Momjian <bruce(at)momjian(dot)us>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Marti Raudsepp <marti(at)juffo(dot)org>, PostgreSQL www <pgsql-www(at)postgresql(dot)org>
Subject: Re: searching for git commit hash
Date: 2012-09-04 13:07:41
Message-ID: CABUevEz=3BMpsKqEjgwHriLieD7=reOMAS=bFEEyKUL61vZXuw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-www

On Sun, Sep 2, 2012 at 3:06 PM, Peter Geoghegan <peter(at)2ndquadrant(dot)com> wrote:
> On 2 September 2012 13:54, Bruce Momjian <bruce(at)momjian(dot)us> wrote:
>> On Wed, May 30, 2012 at 04:34:27PM +0200, Magnus Hagander wrote:
>>> On Wed, May 30, 2012 at 4:03 PM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>>> > Marti Raudsepp <marti(at)juffo(dot)org> writes:
>>> >> On Wed, May 30, 2012 at 8:06 AM, Magnus Hagander <magnus(at)hagander(dot)net> wrote:
>>> >>> I don't believe gitweb supports searching. You'll need to pick another
>>> >>> hash and then copy/paste on the URL.
>>> >
>>> >> Well there is a "search" box in the upper right corner, but I think it
>>> >> can only search for text, not commit hashes.
>>> >
>>> > I have a private page containing a text box I can type the hash into.
>>> > This is very fast and it works with hash prefixes too, which I bet
>>> > google would not.
>>> >
>>> > <form action="http://git.postgresql.org/gitweb"
>>> > method="get" id="goto-commit-id">
>>> > <input type="hidden" name="p" value="postgresql.git" />
>>> > <input type="hidden" name="a" value="commitdiff" />
>>> > Git Commit Hash <input type="text" name="h" size="60" />
>>> > </form>
>>> >
>>> > Dunno if enough people would use this to justify putting it on a public
>>> > page.
>>>
>>> Should be easy enough to add if people want it - somewhere under
>>> www.postgresql.org/developer/ i'd assume...
>>
>> Yes, I think it would be very useful to have on our website.
>
> +1
>
> I'd like to have a Google chrome extension that exposes it through a
> right-click context menu. Do you know enough javascript to throw one
> together, Magnus? :-)

Funny guy... I can test it once you've written it though.

--
Magnus Hagander
Me: http://www.hagander.net/
Work: http://www.redpill-linpro.com/

In response to

Browse pgsql-www by date

  From Date Subject
Next Message Bruce Momjian 2012-09-04 16:39:23 Re: Missing link in Developer FAQ
Previous Message Magnus Hagander 2012-09-04 13:07:20 Re: searching for git commit hash