summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSaša Živkov <sasa.zivkov@sap.com>2019-12-13 12:27:42 +0100
committerEdwin Kempin <ekempin@google.com>2019-12-13 12:10:47 +0000
commit5c7e90ef4de985ed6f3a14ed43619bd8c9988131 (patch)
treee5d44e761b45f0563fb35c3d2e6df92a5052259f
parentbef0560e81a0d93cb7f67779c7c47257cc330992 (diff)
Add example command for how to display note of an external ID
Change-Id: I78564b353aacf557ae22cc3ee8b61dfae1fc4eba (cherry picked from commit 3c6b3c8ab9dc6c3d29534cd935fb9d6bf98d8462)
-rw-r--r--Documentation/config-accounts.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/Documentation/config-accounts.txt b/Documentation/config-accounts.txt
index 7f3cd99251..addada11fc 100644
--- a/Documentation/config-accounts.txt
+++ b/Documentation/config-accounts.txt
@@ -322,6 +322,20 @@ The note content is a Git config file:
password = bcrypt:4:LCbmSBDivK/hhGVQMfkDpA==:XcWn0pKYSVU/UJgOvhidkEtmqCp6oKB7
----
+Once SHA1 of an external ID is known the following command can be used to
+show the content of the note:
+
+----
+$ echo -n 'gerrit:jdoe' | shasum
+7c2a55657d911109dbc930836e7a770fb946e8ef -
+
+$ git show refs/meta/external-ids:7c/2a55657d911109dbc930836e7a770fb946e8ef
+[externalId "username:jdoe"]
+ accountId = 1003407
+ email = jdoe@example.com
+ password = bcrypt:4:LCbmSBDivK/hhGVQMfkDpA==:XcWn0pKYSVU/UJgOvhidkEtmqCp6oKB7
+----
+
The config file has one `externalId` section. The external ID key, which
consists of scheme and ID in the format '<scheme>:<id>', is used as
subsection name.