From: Jakub Narebski <jnareb@gmail.com>
To: Damien Tournoud <damien@tournoud.net>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] More flexible URL patterns for gitweb
Date: Sun, 11 Apr 2010 23:09:35 +0200 [thread overview]
Message-ID: <201004112309.37089.jnareb@gmail.com> (raw)
In-Reply-To: <r2te821df551004111046v2ef3219x5c012af27f2cc974@mail.gmail.com>
On Sun, 11 Apr 2010, Damien Tournoud wrote:
> On Sun, Apr 11, 2010 at 7:33 PM, Jakub Narebski <jnareb@gmail.com> wrote:
> > To not break backward compatibility, wouldn't it be better to check if
> > elements of @git_base_url_list end with ':' or '/', and join base with
> > project path depending on this condition, i.e.:
> >
> > + @url_list = map { m/[/:]$/ ? "$_$project" : "$_/$project" } @git_base_url_list
> > + unless @url_list;
> >
> > This means: if base ends with colon ':' or slash '/', concatenate base
> > and project path, otherwise join them using '/' as field separator.
>
> Thanks for the review. Indeed this way sounds better.
>
> All this is new to me so I'm not sure what is the way forward. Should
> I publish another patch or would you?
If you don't mind, I'd rather you send updated patch (perhaps as response
to this email, or staring a separate thread).
Note that you would need to:
1. Perhaps update first line of commit message, i.e. email subject.
But current version might be good enough; if you don't change the
subject you should use [PATCH v2] rather than [PATCH] in it.
2. Update commit message, to say that you are modifying the way project
URLs shown in gitweb are composed out of bases in @git_base_url_list
and $project, to allow possibility of generating scp-like relative
URL for SSH access, e.g. 'git@git.example.com:user/repo.git'
3. You might want to put comment about what changed from previous
version of the patch between "---\n" and diffstat.
4. You would need to update description of @git_base_url_list in
gitweb/README, e.g. providing example what to put in @git_base_url_list
to get 'git@git.example.com:user/repo.git': it is 'git@git.example.com:'
5. Update comment in gitweb.perl above declaration of @git_base_url_list
to follow modified way of getting URL from base and $project
6. Make above change in git_summary.
P.S. Thank you for contributing to git.
--
Jakub Narebski
Poland
prev parent reply other threads:[~2010-04-11 21:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-11 0:40 [PATCH] More flexible URL patterns for gitweb Damien Tournoud
2010-04-11 17:33 ` Jakub Narebski
2010-04-11 17:46 ` Damien Tournoud
2010-04-11 21:09 ` 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=201004112309.37089.jnareb@gmail.com \
--to=jnareb@gmail.com \
--cc=damien@tournoud.net \
--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).