git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
From: Jakub Narebski <jnareb@gmail.com>
To: Manuel Doninger <manuel@doninger.net>
Cc: git <git@vger.kernel.org>, Jakub Narebski <jnareb@gmail.com>
Subject: Re: Gitweb: Show git clone url on projects list
Date: Thu, 07 Oct 2010 03:00:56 -0700 (PDT)	[thread overview]
Message-ID: <m3iq1efhlp.fsf@localhost.localdomain> (raw)
In-Reply-To: <AANLkTimGhR_64CDKuN0x4Lk6Ve8rr7BAOCL1uGUkQv6v@mail.gmail.com>

Manuel Doninger <manuel@doninger.net> writes:

> I installed gitweb on my server, and it works great.
> In gitweb.conf I defined @git_base_url_list, an on every projects
> status page the clone url is shown.
> But I want also the clone url shown on the projects list, like on
> http://git.kernel.org/ (the "git" link on the right border of every
> line).
> How can I do this (i use git 1.7.3)?

The http://git.kernel.org site uses *modified* gitweb, which among
others include support for _git_ link on projects_list page.  You can
get it from
  http://git.kernel.org/?p=git/warthog9/gitweb.git      (gitweb)
  git://git.kernel.org/pub/scm/git/warthog9/gitweb.git  (clone url)
You would need only `--depth=1` shallow clone.

There were multiple attempts to add such link to core gitweb (i.e. the
one present in git 1.7.3), but were not merged in due to runing
aground the following problems:

1. There might be more than one link for one git repository.  One can
   provide git://, http:// and ssh:// URLs.  Which one to chose?

   This issue might be solved by either using first one on the list,
   or filtering and showing link(s) to anonymous unauthenticated ones,
   i.e. _git_ link (if git:// URL exists) and perhaps _http_ link (if
   http:// URL exists).

2. More important issue is that besides @git_base_url_list the URL or
   URLs for a repository can come from various other places: from
   'cloneurl' text file and from `gitweb.url' configuration variable.
   It it was taken into account (even to check that such configuration
   does not exist) it would badly affect performance of generating
   projects list page.

   The git.kernel.org gitweb doesn't have this problem because it uses
   @git_base_url_list (I think unconditionally); also it supports
   output caching, so eventual performance hit is migitated.

-- 
Jakub Narebski
Poland
ShadeHawk on #git

  reply	other threads:[~2010-10-07 10:01 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <AANLkTi=5P1OiKprOifyu2xuFjVToL5kE9dXrEr3gSr+_@mail.gmail.com>
2010-10-07  8:47 ` Gitweb: Show git clone url on projects list Manuel Doninger
2010-10-07 10:00   ` Jakub Narebski [this message]
2010-10-11 21:27     ` J.H.
2010-10-11 23:11       ` Jakub Narebski

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

  List information: http://vger.kernel.org/majordomo-info.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3iq1efhlp.fsf@localhost.localdomain \
    --to=jnareb@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=manuel@doninger.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.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).