From: Jonathan Nieder <jrnieder@gmail.com>
To: Ramkumar Ramachandra <artagnon@gmail.com>
Cc: 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>,
Git Mailing List <git@vger.kernel.org>,
Ilari Liusvaara <ilari.liusvaara@elisanet.fi>
Subject: Re: [PATCH v7 1/2] Documentation/remote-helpers: Rewrite description
Date: Mon, 29 Mar 2010 01:39:53 -0500 [thread overview]
Message-ID: <20100329063952.GA20360@progeny.tock> (raw)
In-Reply-To: <f3271551003282318vc256d20j90bb83170b0a983@mail.gmail.com>
Ramkumar Ramachandra wrote:
>> I think it would be better to document that
>> part in the documentation of the code and programs that call the helper,
>> not in the helper documentation.
[...]
> Unfortunately, I don't see where else this documentation can fit in:
> if it were to go into a specific remote helper's code, then it'll have
> to be duplicated for all the remote helpers, since all of them parse
> options similarly.
One possibility: new manpage, called giturl(7) or something, with:
- the information from your patch, reformatted a little to be from
the caller’s perspective;
- the information currently in the GIT URLS and REMOTES sections
of git-pull(1) and and other urls-remotes.txt includers;
- pointers to appropriate high-level and low-level documentation
for more information.
This would at least avoid some duplication of text in explaining how
the [remote "<name>"] setups work.
> It certainly cannot go into remote.c or
> transport-helper.c, because they have little/ nothing to do with the
> actual argument parsing.
One possibility would be to put it in Documentation/technical/transport.txt
or some similarly named new file. Later that file could expand to an
overview of the transport layer, which would be nice to have.
Files in Documentation/technical do not get installed as manpages,
which would make this less convenient when writing a new helper
without a full documentation tree available.
More importantly, the “how to configure access to a foreign
repository” aspect of what you are writing is really more pertinent to
users than remote helper developers. Remote helper developers only
need to know “first argument is a remote nickname or some nonsense
with a colon; second argument is a transport-native address
identifying the remote repository; second argument can be omitted only
if a remote nickname was used”.
HTH,
Jonathan
next prev parent reply other threads:[~2010-03-29 6:40 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-28 18:03 [PATCH v7 1/2] Documentation/remote-helpers: Rewrite description Ramkumar Ramachandra
2010-03-29 1:17 ` Gabriel Filion
2010-03-29 3:04 ` Ramkumar Ramachandra
2010-03-29 3:08 ` Sverre Rabbelier
2010-03-29 5:09 ` Daniel Barkalow
2010-03-29 6:18 ` Ramkumar Ramachandra
2010-03-29 6:39 ` Jonathan Nieder [this message]
2010-03-29 15:39 ` Daniel Barkalow
2010-03-30 3:23 ` Ramkumar Ramachandra
2010-03-29 3:25 ` Tay Ray Chuan
2010-03-29 3:45 ` Ramkumar Ramachandra
2010-04-05 14:05 ` Ramkumar Ramachandra
2010-04-05 21:55 ` Junio C Hamano
2010-04-06 2:47 ` Ramkumar Ramachandra
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=20100329063952.GA20360@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).