From: Petr Baudis <pasky@suse.cz>
To: warthog19@eaglescrag.net
Cc: git@vger.kernel.org, John 'Warthog9' Hawley <warthog9@eaglescrag.net>
Subject: Re: [PATCH 1/1] Add "git" link to the end of project line on the project_list page.
Date: Mon, 4 Aug 2008 04:26:56 +0200 [thread overview]
Message-ID: <20080804022656.GA32184@machine.or.cz> (raw)
In-Reply-To: <1217815217-11329-2-git-send-email-warthog19@eaglescrag.net>
On Sun, Aug 03, 2008 at 07:00:17PM -0700, warthog19@eaglescrag.net wrote:
> diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
> index 90cd99b..c33f4ed 100755
> --- a/gitweb/gitweb.perl
> +++ b/gitweb/gitweb.perl
> @@ -108,6 +108,14 @@ our $mimetypes_file = undef;
> # could be even 'utf-8' for the old behavior)
> our $fallback_encoding = 'latin1';
>
> +# enable / disable a final link on the project list page
> +# that will be the location of that actuall git url
> +# it will output this in the format:
> +# git://hostname/path/to/tree.git
> +# disabled = blank or undef
> +# enable = url to prefix before filling in the trailing path to the git repo
> +our $projectlist_gitlinkurl = undef;
> +
> # rename detection options for git-diff and git-diff-tree
> # - default is '-M', with the cost proportional to
> # (number of removed files) * (number of new files).
Note that I will soon submit a generic patch that lets you extend
the link lists with custom entries - you could easily use that for
the git links (I'm personally not convinced how useful they really are
on the project list page), I will use them for the graphiclog, edit and
fork links at repo.or.cz.
> + print " | ". $cgi->a({-href => "git://projectlist_gitlinkurl/".esc_html($pr->{'path'})}, "git");
You meant $projectlist_gitlinkurl.
--
Petr "Pasky" Baudis
The next generation of interesting software will be done
on the Macintosh, not the IBM PC. -- Bill Gates
next prev parent reply other threads:[~2008-08-04 2:28 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-04 2:00 [PATCH 0/1] : [GITWEB] : Git link on project list page warthog19
2008-08-04 2:00 ` [PATCH 1/1] Add "git" link to the end of project line on the project_list page warthog19
2008-08-04 2:26 ` Petr Baudis [this message]
2008-08-04 2:38 ` J.H.
2008-08-04 3:20 ` Petr Baudis
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=20080804022656.GA32184@machine.or.cz \
--to=pasky@suse.cz \
--cc=git@vger.kernel.org \
--cc=warthog19@eaglescrag.net \
--cc=warthog9@eaglescrag.net \
/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