<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/Documentation/technical/api-credentials.txt, branch v2.3.0</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.3.0</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.3.0'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2014-12-04T18:11:12Z</updated>
<entry>
<title>credential: let helpers tell us to quit</title>
<updated>2014-12-04T18:11:12Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2014-12-04T03:46:48Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=59b386526a6cdd0289cdf35dd8038ae1bdfd630f'/>
<id>urn:sha1:59b386526a6cdd0289cdf35dd8038ae1bdfd630f</id>
<content type='text'>
When we are trying to fill a credential, we loop over the
set of defined credential-helpers, then fall back to running
askpass, and then finally prompt on the terminal. Helpers
which cannot find a credential are free to tell us nothing,
but they cannot currently ask us to stop prompting.

This patch lets them provide a "quit" attribute, which asks
us to stop the process entirely (avoiding running more
helpers, as well as the askpass/terminal prompt).

This has a few possible uses:

  1. A helper which prompts the user itself (e.g., in a
     dialog) can provide a "cancel" button to the user to
     stop further prompts.

  2. Some helpers may know that prompting cannot possibly
     work. For example, if their role is to broker a ticket
     from an external auth system and that auth system
     cannot be contacted, there is no point in continuing
     (we need a ticket to authenticate, and the user cannot
     provide one by typing it in).

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>doc: various spelling fixes</title>
<updated>2013-04-12T19:00:52Z</updated>
<author>
<name>Stefano Lattarini</name>
<email>stefano.lattarini@gmail.com</email>
</author>
<published>2013-04-11T22:36:10Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e1c3bf496f494e60e781c8dd0ec3d799ea48722c'/>
<id>urn:sha1:e1c3bf496f494e60e781c8dd0ec3d799ea48722c</id>
<content type='text'>
Most of these were found using Lucas De Marchi's codespell tool.

Signed-off-by: Stefano Lattarini &lt;stefano.lattarini@gmail.com&gt;
Signed-off-by: Jonathan Nieder &lt;jrnieder@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Documentation: the name of the system is 'Git', not 'git'</title>
<updated>2013-02-01T21:53:33Z</updated>
<author>
<name>Thomas Ackermann</name>
<email>th.acker@arcor.de</email>
</author>
<published>2013-01-21T19:17:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2de9b71138171dca7279db3b3fe67e868c76d921'/>
<id>urn:sha1:2de9b71138171dca7279db3b3fe67e868c76d921</id>
<content type='text'>
Signed-off-by: Thomas Ackermann &lt;th.acker@arcor.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>add 'git credential' plumbing command</title>
<updated>2012-06-25T18:55:51Z</updated>
<author>
<name>Javier Roucher Iglesias</name>
<email>Javier.Roucher-Iglesias@ensimag.imag.fr</email>
</author>
<published>2012-06-24T11:39:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e30b2feb1b50c2d14d32dc3e6e41f7b20a677ff2'/>
<id>urn:sha1:e30b2feb1b50c2d14d32dc3e6e41f7b20a677ff2</id>
<content type='text'>
The credential API is in C, and not available to scripting languages.
Expose the functionalities of the API by wrapping them into a new
plumbing command "git credentials".

In other words, replace the internal "test-credential" by an official Git
command.

Most documentation writen by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Pavel Volek &lt;Pavel.Volek@ensimag.imag.fr&gt;
Signed-off-by: Kim Thuat Nguyen &lt;Kim-Thuat.Nguyen@ensimag.imag.fr&gt;
Signed-off-by: Javier Roucher Iglesias &lt;Javier.Roucher-Iglesias@ensimag.imag.fr&gt;
Signed-off-by: Matthieu Moy &lt;Matthieu.Moy@imag.fr&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>api-credential.txt: document that helpers field is filled-in automatically</title>
<updated>2012-06-12T14:48:40Z</updated>
<author>
<name>Matthieu Moy</name>
<email>Matthieu.Moy@imag.fr</email>
</author>
<published>2012-06-11T17:51:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=317d74be690f68748e8af9844407db3b100d836f'/>
<id>urn:sha1:317d74be690f68748e8af9844407db3b100d836f</id>
<content type='text'>
It was unclear whether the field was to be specified by the user of the
API.

Signed-off-by: Matthieu Moy &lt;Matthieu.Moy@imag.fr&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>docs: fix cross-directory linkgit references</title>
<updated>2012-06-08T15:31:52Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2012-06-07T21:03:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=fe77b416c774a469a585c4b58fcae5e7a5f3545d'/>
<id>urn:sha1:fe77b416c774a469a585c4b58fcae5e7a5f3545d</id>
<content type='text'>
Most of our documentation is in a single directory, so using
linkgit:git-config[1] just generates a relative link in the
same directory. However, this is not the case with the API
documentation in technical/*, which need to refer to
git-config from the parent directory.

We can fix this by passing a special prefix attribute when building
in a subdirectory, and respecting that prefix in our linkgit
definitions.

We only have to modify the html linkgit definition.  For
manpages, we can ignore this for two reasons:

  1. we do not generate actual links to the file in
     manpages, but instead just give the name and section of
     the linked manpage

  2. we do not currently build manpages for subdirectories,
     only html

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Matthieu Moy &lt;Matthieu.Moy@imag.fr&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>api-credentials.txt: add "see also" section</title>
<updated>2012-06-04T20:49:50Z</updated>
<author>
<name>Matthieu Moy</name>
<email>Matthieu.Moy@imag.fr</email>
</author>
<published>2012-06-04T20:17:44Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=04ab6ae7765700375e9442347430fc3a6de40f81'/>
<id>urn:sha1:04ab6ae7765700375e9442347430fc3a6de40f81</id>
<content type='text'>
Signed-off-by: Matthieu Moy &lt;Matthieu.Moy@imag.fr&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>api-credentials.txt: mention credential.helper explicitly</title>
<updated>2012-06-04T20:49:44Z</updated>
<author>
<name>Matthieu Moy</name>
<email>Matthieu.Moy@imag.fr</email>
</author>
<published>2012-06-04T20:17:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=365fc8d56a6fdb5a43c71f1c53cc3a67567bf3a6'/>
<id>urn:sha1:365fc8d56a6fdb5a43c71f1c53cc3a67567bf3a6</id>
<content type='text'>
The name of the configuration variable was mentioned only at the very
end of the explanation, in a place specific to a specific rule, hence it
was not very clear what the specification was about.

Signed-off-by: Matthieu Moy &lt;Matthieu.Moy@imag.fr&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>api-credentials.txt: show the big picture first</title>
<updated>2012-06-04T20:47:32Z</updated>
<author>
<name>Matthieu Moy</name>
<email>Matthieu.Moy@imag.fr</email>
</author>
<published>2012-06-04T20:17:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=223988808971eb5429efd914e9e88855ea0b0e01'/>
<id>urn:sha1:223988808971eb5429efd914e9e88855ea0b0e01</id>
<content type='text'>
The API documentation targets two kinds of developers: those using the
C API, and those writing remote-helpers. The document was not clear
about which part was useful to which category, and for example, the C API
could be mistakenly thought as an API for writting remote helpers.

Based-on-patch-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Matthieu Moy &lt;Matthieu.Moy@imag.fr&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>credential: add function for parsing url components</title>
<updated>2011-12-12T07:16:24Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2011-12-10T10:31:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d3e847c107c236126476e7efb272be3fa4339825'/>
<id>urn:sha1:d3e847c107c236126476e7efb272be3fa4339825</id>
<content type='text'>
All of the components of a credential struct can be found in
a URL.  For example, the URL:

  http://foo:bar@example.com/repo.git

contains:

  protocol=http
  host=example.com
  path=repo.git
  username=foo
  password=bar

We want to be able to turn URLs into broken-down credential
structs so that we know two things:

  1. Which parts of the username/password we still need

  2. What the context of the request is (for prompting or
     as a key for storing credentials).

This code is based on http_auth_init in http.c, but needed a
few modifications in order to get all of the components that
the credential object is interested in.

Once the http code is switched over to the credential API,
then http_auth_init can just go away.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
