From: Jon Loeliger <jdl@freescale.com>
To: Daniel Barkalow <barkalow@iabervon.org>
Cc: Junio C Hamano <gitster@pobox.com>,
Johannes Schindelin <Johannes.Schindelin@gmx.de>,
Jakub Narebski <jnareb@gmail.com>,
git@vger.kernel.org
Subject: Re: [PATCH 2/2] Add support for host aliases in config files
Date: Tue, 19 Feb 2008 09:11:11 -0600 [thread overview]
Message-ID: <47BAF18F.5040709@freescale.com> (raw)
In-Reply-To: <alpine.LNX.1.00.0802182317520.5816@iabervon.org>
Daniel Barkalow wrote:
> This allows users with different preferences for access methods to the
> same remote repositories to rewrite each other's URLs by pattern
> matching across a large set of similiarly set up repositories to each
> get the desired access.
>
> For example, if you don't have a kernel.org account, you might want
> settings like:
>
> [host "kernel.org"]
> base = git://git.kernel.org/pub/
> rewritebase = master.kernel.org:/pub
>
> Then, if you give git a URL like:
>
> master.kernel.org:/pub/scm/linux/kernel/git/linville/wireless-2.6.git
>
> it will act like you gave it:
>
> git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6.git
>
> and you can cut-and-paste pull requests in email without fixing them
> by hand, for example.
>
> Signed-off-by: Daniel Barkalow <barkalow@iabervon.org>
> ---
So, I may be dense, but I'm having a hard time distinguishing
the names "base" and "rewritebase" just from a User Interface
perspective. It's not clear to me which of those is the A and
which is the B part in s/A/B/. "Rewritebase" might be the "from"
basis, or it might be the "to" basis. Can we come up with more
descriptive property names here?
Is the rewrite always just prefix substitution/replacement?
What if there was some generic path rewrite needed? (KISS? :-))
Also, is "host" really the right config key? Maybe "rewritehost"?
Or is this thought to be the basis of other (perhaps not rewrite
related) properties of the same host as well?
Maybe it's just me.
Thanks,
jdl
next prev parent reply other threads:[~2008-02-19 15:13 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-19 4:28 [PATCH 2/2] Add support for host aliases in config files Daniel Barkalow
2008-02-19 15:11 ` Jon Loeliger [this message]
2008-02-19 15:49 ` Johannes Schindelin
2008-02-19 16:52 ` Daniel Barkalow
2008-02-20 19:44 ` Jakub Narebski
2008-02-19 16:45 ` Daniel Barkalow
2008-02-19 21:35 ` Junio C Hamano
2008-02-20 0:02 ` Daniel Barkalow
2008-02-20 1:01 ` Johannes Schindelin
2008-02-20 1:04 ` Junio C Hamano
2008-02-20 1:14 ` Johannes Schindelin
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=47BAF18F.5040709@freescale.com \
--to=jdl@freescale.com \
--cc=Johannes.Schindelin@gmx.de \
--cc=barkalow@iabervon.org \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--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).