From: Jeff King <peff@peff.net>
To: Matthieu Moy <Matthieu.Moy@imag.fr>
Cc: git@vger.kernel.org, gitster@pobox.com
Subject: Re: [PATCH] api-credential.txt: document that helpers field is filled-in automatically
Date: Mon, 11 Jun 2012 15:08:11 -0400 [thread overview]
Message-ID: <20120611190811.GB20889@sigill.intra.peff.net> (raw)
In-Reply-To: <1339437107-25909-1-git-send-email-Matthieu.Moy@imag.fr>
On Mon, Jun 11, 2012 at 07:51:47PM +0200, Matthieu Moy wrote:
> It was unclear whether the field was to be specified by the user of the
> API.
>
> Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr>
> ---
> > It is correct that the C API asks helpers that the user configured,
> > but I think it is common across three API functions, not limited to
> > credential_fill(). credential_apply_config() is called from approve
> > and reject, too.
>
> Ah, right, so compared to v1, we can move the sentence to the
> description of the "helpers" field, like this:
I think this is OK. Technically it loads other matching config, as well
(filling in default username fields and respecting useHttpPath). I don't
know if it is worth mentioning them, too.
> diff --git a/Documentation/technical/api-credentials.txt b/Documentation/technical/api-credentials.txt
> index 21ca6a2..48f51ed 100644
> --- a/Documentation/technical/api-credentials.txt
> +++ b/Documentation/technical/api-credentials.txt
> @@ -21,7 +21,9 @@ Data Structures
> The `helpers` member of the struct is a `string_list` of helpers. Each
> string specifies an external helper which will be run, in order, to
> either acquire or store credentials. See the section on credential
> -helpers below.
> +helpers below. This list is filled-in by the API functions
> +according to the corresponding configuration variables before
> +consulting helpers.
You might want to say something like "...and therefore there is usually
no need for a caller to modify the helpers field at all".
-Peff
next prev parent reply other threads:[~2012-06-11 19:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-11 10:46 [PATCH] api-credential.txt: document that helpers field is filled-in automatically Matthieu Moy
2012-06-11 16:12 ` Junio C Hamano
2012-06-11 17:51 ` Matthieu Moy
2012-06-11 19:08 ` Jeff King [this message]
2012-06-12 9:39 ` Matthieu Moy
2012-06-12 14:48 ` Junio C Hamano
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=20120611190811.GB20889@sigill.intra.peff.net \
--to=peff@peff.net \
--cc=Matthieu.Moy@imag.fr \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.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).