git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Damien Tournoud <damien@tournoud.net>
To: git@vger.kernel.org
Cc: Jakub Narebski <jnareb@gmail.com>
Subject: Re: [PATCH] More flexible URL patterns for gitweb
Date: Sun, 11 Apr 2010 19:46:06 +0200	[thread overview]
Message-ID: <r2te821df551004111046v2ef3219x5c012af27f2cc974@mail.gmail.com> (raw)
In-Reply-To: <m37hodhp3e.fsf@localhost.localdomain>

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?

Damien Tournoud

  reply	other threads:[~2010-04-11 17:46 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 [this message]
2010-04-11 21:09     ` 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

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

  git send-email \
    --in-reply-to=r2te821df551004111046v2ef3219x5c012af27f2cc974@mail.gmail.com \
    --to=damien@tournoud.net \
    --cc=git@vger.kernel.org \
    --cc=jnareb@gmail.com \
    /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).