Explorar el Código

[doc] Add some cred helper info

Change-Id: Ie93ec79cf1708a07d48bb37042c7fac6036d9b62
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6471152
Reviewed-by: Gavin Mak <gavinmak@google.com>
Commit-Queue: Allen Li <ayatane@chromium.org>
Allen Li hace 4 meses
padre
commit
828d536eef

+ 14 - 1
man/html/depot_tools_gerrit_auth.html

@@ -787,6 +787,19 @@ line is needed to reset the helper list to prevent conflicts.</p></div>
 </div>
 </div>
 <div class="sect1">
+<h2 id="_credential_helper">CREDENTIAL HELPER</h2>
+<div class="sectionbody">
+<div class="paragraph"><p><code>git-credential-luci</code> is a Git credential helper that can provide
+OAuth credentials for Gerrit.</p></div>
+<div class="paragraph"><p>You will need to set up your OAuth credentials first by running
+<code>git-credential-luci login</code>.  After that, it will be able to provide
+credentials to authenticate Git commands, if you have configured it
+according to the previous section.</p></div>
+<div class="paragraph"><p><code>git-credential-luci</code> only keeps one active login session at a time
+per OS user.</p></div>
+</div>
+</div>
+<div class="sect1">
 <h2 id="_chromium_depot_tools">CHROMIUM DEPOT_TOOLS</h2>
 <div class="sectionbody">
 <div class="paragraph"><p>Part of the chromium <a href="depot_tools.html">depot_tools(7)</a> suite. These tools are meant to
@@ -799,7 +812,7 @@ by checking out the <a href="https://chromium.googlesource.com/chromium/tools/de
 <div id="footer">
 <div id="footer-text">
 Last updated
- 2025-03-19 21:22:42 UTC
+ 2025-04-17 21:57:51 UTC
 </div>
 </div>
 </body>

+ 10 - 3
man/man7/depot_tools_gerrit_auth.7

@@ -2,12 +2,12 @@
 .\"     Title: depot_tools_gerrit_auth
 .\"    Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author]
 .\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
-.\"      Date: 03/19/2025
+.\"      Date: 04/17/2025
 .\"    Manual: Chromium depot_tools Manual
-.\"    Source: depot_tools 7a97e75f4
+.\"    Source: depot_tools efc195849
 .\"  Language: English
 .\"
-.TH "DEPOT_TOOLS_GERRIT_A" "7" "03/19/2025" "depot_tools 7a97e75f4" "Chromium depot_tools Manual"
+.TH "DEPOT_TOOLS_GERRIT_A" "7" "04/17/2025" "depot_tools efc195849" "Chromium depot_tools Manual"
 .\" -----------------------------------------------------------------
 .\" * Define some portability stuff
 .\" -----------------------------------------------------------------
@@ -62,6 +62,13 @@ This tells Git to use \fBgit\-credential\-luci\fR\&. The first empty value line
 You should copy this for each Gerrit host you use\&.
 .sp
 For Googlers, see go/chrome\-gerrit\-auth\&.
+.SH "CREDENTIAL HELPER"
+.sp
+\fBgit\-credential\-luci\fR is a Git credential helper that can provide OAuth credentials for Gerrit\&.
+.sp
+You will need to set up your OAuth credentials first by running \fBgit\-credential\-luci login\fR\&. After that, it will be able to provide credentials to authenticate Git commands, if you have configured it according to the previous section\&.
+.sp
+\fBgit\-credential\-luci\fR only keeps one active login session at a time per OS user\&.
 .SH "CHROMIUM DEPOT_TOOLS"
 .sp
 Part of the chromium \fBdepot_tools\fR(7) suite\&. These tools are meant to assist with the development of chromium and related projects\&. Download the tools by checking out the \m[blue]\fBgit repository\fR\m[]\&\s-2\u[1]\d\s+2\&.

+ 14 - 0
man/src/depot_tools_gerrit_auth.txt

@@ -45,6 +45,20 @@ You should copy this for each Gerrit host you use.
 
 For Googlers, see go/chrome-gerrit-auth.
 
+CREDENTIAL HELPER
+-----------------
+
+`git-credential-luci` is a Git credential helper that can provide
+OAuth credentials for Gerrit.
+
+You will need to set up your OAuth credentials first by running
+`git-credential-luci login`.  After that, it will be able to provide
+credentials to authenticate Git commands, if you have configured it
+according to the previous section.
+
+`git-credential-luci` only keeps one active login session at a time
+per OS user.
+
 include::_footer.txt[]
 
 // vim: ft=asciidoc: