From: Jonathan Nieder <jrnieder@gmail.com>
To: Ramkumar Ramachandra <artagnon@gmail.com>
Cc: Git Mailing List <git@vger.kernel.org>,
Daniel Barkalow <barkalow@iabervon.org>,
Gabriel Filion <lelutin@gmail.com>,
Junio C Hamano <gitster@pobox.com>,
Sverre Rabbelier <srabbelier@gmail.com>,
Michael J Gruber <git@drmicha.warpmail.net>,
Ilari Liusvaara <ilari.liusvaara@elisanet.fi>
Subject: Re: [RFC PATCH] Write new giturl(7) manpage
Date: Mon, 29 Mar 2010 14:18:32 -0500 [thread overview]
Message-ID: <20100329191832.GA26842@progeny.tock> (raw)
In-Reply-To: <f3271551003290759g154b149fl7877d9b83e1313e6@mail.gmail.com>
Ramkumar Ramachandra wrote:
> I'm not entirely happy with it because the remote vcs setting doesn't
> quite fit here. Plus, it seems like a dirty hack to me. The name doesn't do
> justice: giturl exists to host Ilari's remote helper notes.
I suppose you are right. I was imagining something like this:
NAME
----
giturl - Specifying remote repositories to Git
SYNOPSIS
--------
<transport>://<rest-of-URL>, <host>:<path>, <transport>::<address>, <nickname>
DESCRIPTION
-----------
To specify a remote repository using Git’s native protocol, one can
use a traditional-looking URL.
. git://host.xz[:port]/path/to/repo.git/
. git://host.xz[:port]/~user/path/to/repo.git/
For the SSH protocol, often used with 'git push', use the traditional syntax
supported by 'scp'. You can optionally specify which user to log in as.
. [user@]host.xz:/path/to/repo.git/
. [user@]host.xz:path/to/repo.git/
That syntax does not allow specifying a port number. For this, a more
verbose URL-style syntax is supported.
. ssh://[user@]host.xz[:port]/path/to/repo.git/
. ssh://[user@]host.xz[:port]/~[otheruser]/path/to/repo.git/
Frequently-accessed repositories can be given a short alphanumeric
nickname. For example, the 'parent repository' for a new clone is
automatically given the nickname 'origin'. See linkgit:git-remote[1] for
details.
. nickname
A path on the current machine can be used directly. If a repository is
specified in this way to the linkgit:git-clone[1] command, the clone will
automatically use the --local option (which see). The file:// syntax
can be used to avoid this behavior.
. /path/to/repo.git/
. path/to/repo.git/
Other protocols (most notably HTTP) can be specified with the
schema://path syntax. Support for the 'rsync', 'file', 'git', 'ssh',
'git+ssh', and 'ssh+git' transports is built in.
If Git was installed with HTTP support, then the 'http', 'https',
'ftp', and 'ftps' schemata will be supported through helper programs.
Third-party helpers may support other protocols, for example for
interaction with other version control systems. The syntax
`transport::schema://path` can be used, or `transport://path` if
the helper is already named after a URL schema. The
'git remote-<transport>' helper will be used to service the request,
with `schema://path` passed as the associated URL.
See also linkgit:git-remote-helpers[7].
. http[s]://[user@]host.xz[:port]/[~user/]path/to/repo.git/
. ftp[s]://[user@]host.xz[:port]/[~user/]path/to/repo.git/
. file:///path/to/repo.git/
. rsync://[user@]host.xz[:port]/path/to/repo.git/
. http::http://[user@]host.xz[:port]/[~user/]path/to/repo.git/
. etc
git-remote(1) would include the information currently in remote-urls.txt
about remote nicknames, plus:
- how to specify a relevant vcs helper
- the pushurl setting
Pages such as git-clone(1) that currently include urls.txt or
remote-urls.txt could have the remote section replaced with something
shorter:
See giturls(7) for an explanation of the supported values for <repository>
(git://host.xz/path, http://host.xz/path, and so on).
But this is more major surgery than the purpose of your patch calls
for. If you find a simpler way to convey the relevant information in
the meantime, I can prepare a patch this weekend.
Thanks,
Jonathan
next prev parent reply other threads:[~2010-03-29 19:18 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-29 14:59 [RFC PATCH] Write new giturl(7) manpage Ramkumar Ramachandra
2010-03-29 15:48 ` Daniel Barkalow
2010-03-29 15:55 ` Ilari Liusvaara
2010-03-29 15:59 ` Sverre Rabbelier
2010-03-29 17:05 ` Ramkumar Ramachandra
2010-03-29 19:18 ` Jonathan Nieder [this message]
2010-03-29 19:21 ` Sverre Rabbelier
2010-03-29 19:24 ` Ramkumar Ramachandra
2010-03-29 19:35 ` Ramkumar Ramachandra
2010-04-06 6:06 ` [PATCH/RFC] Documentation: reorganize documentation of URLs understood by git Jonathan Nieder
2010-04-06 6:57 ` Junio C Hamano
2010-04-06 7:40 ` Ramkumar Ramachandra
2010-04-06 21:33 ` Jonathan Nieder
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=20100329191832.GA26842@progeny.tock \
--to=jrnieder@gmail.com \
--cc=artagnon@gmail.com \
--cc=barkalow@iabervon.org \
--cc=git@drmicha.warpmail.net \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=ilari.liusvaara@elisanet.fi \
--cc=lelutin@gmail.com \
--cc=srabbelier@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).