diff options
author | Junio C Hamano <gitster@pobox.com> | 2010-09-08 09:17:01 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2010-09-08 09:17:01 -0700 |
commit | b815a726e9da97924b44d551b10d3fef3b3d1885 (patch) | |
tree | a1d0fe2b25ce93d7e1e4aad225b551018d3ca22e /Documentation | |
parent | e250c5914fd151caf228cbda6c30560c266bcfef (diff) | |
parent | 453842c9b81c6bb1328b0dfc351745615004a77f (diff) | |
download | git-b815a726e9da97924b44d551b10d3fef3b3d1885.tar.gz |
Merge branch 'kf/askpass-config'
* kf/askpass-config:
Extend documentation of core.askpass and GIT_ASKPASS.
Allow core.askpass to override SSH_ASKPASS.
Add a new option 'core.askpass'.
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/config.txt | 9 | ||||
-rw-r--r-- | Documentation/git.txt | 7 |
2 files changed, 16 insertions, 0 deletions
diff --git a/Documentation/config.txt b/Documentation/config.txt index cda6721013..d294dd6dcd 100644 --- a/Documentation/config.txt +++ b/Documentation/config.txt @@ -450,6 +450,15 @@ core.excludesfile:: to the value of `$HOME` and "{tilde}user/" to the specified user's home directory. See linkgit:gitignore[5]. +core.askpass:: + Some commands (e.g. svn and http interfaces) that interactively + ask for a password can be told to use an external program given + via the value of this variable. Can be overridden by the 'GIT_ASKPASS' + environment variable. If not set, fall back to the value of the + 'SSH_ASKPASS' environment variable or, failing that, a simple password + prompt. The external program shall be given a suitable prompt as + command line argument and write the password on its STDOUT. + core.editor:: Commands such as `commit` and `tag` that lets you edit messages by launching an editor uses the value of this diff --git a/Documentation/git.txt b/Documentation/git.txt index 93e3b07c6c..e341075078 100644 --- a/Documentation/git.txt +++ b/Documentation/git.txt @@ -639,6 +639,13 @@ Usually it is easier to configure any desired options through your personal `.ssh/config` file. Please consult your ssh documentation for further details. +'GIT_ASKPASS':: + If this environment variable is set, then git commands which need to + acquire passwords or passphrases (e.g. for HTTP or IMAP authentication) + will call this program with a suitable prompt as command line argument + and read the password from its STDOUT. See also the 'core.askpass' + option in linkgit:git-config[1]. + 'GIT_FLUSH':: If this environment variable is set to "1", then commands such as 'git blame' (in incremental mode), 'git rev-list', 'git log', |