blob: 0363f60cf5aef223b1822f32211fa80601e550a7 [file] [log] [blame]
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -08001= gerrit ls-user-refs
Gustaf Lundhbf53a702012-11-15 18:24:32 -08002
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -08003== NAME
David Shevitze369eee2018-09-26 12:31:46 -07004gerrit ls-user-refs - List refs visible to a specific user.
Gustaf Lundhbf53a702012-11-15 18:24:32 -08005
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -08006== SYNOPSIS
Michael Ochmanne2d76a12016-06-23 17:07:37 +02007[verse]
Yuxuan 'fishy' Wangd85b6872013-11-15 11:47:46 -08008--
Michael Ochmanne2d76a12016-06-23 17:07:37 +02009_ssh_ -p <port> <host> _gerrit ls-user-refs_
Gustaf Lundhbf53a702012-11-15 18:24:32 -080010 [--project PROJECT> | -p <PROJECT>]
11 [--user <USER> | -u <USER>]
Gustaf Lundh2f7bdc12012-11-18 18:24:39 -080012 [--only-refs-heads]
Yuxuan 'fishy' Wangd85b6872013-11-15 11:47:46 -080013--
Gustaf Lundhbf53a702012-11-15 18:24:32 -080014
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080015== DESCRIPTION
Gustaf Lundhbf53a702012-11-15 18:24:32 -080016Displays all refs that the specified user can see.
17
18Allows an administrator to query which refs are visible for
19a user. The command is helpful for admins when debugging why a
20user cannot access certain refs and also to help admins
21verify that certain secret refs are not exposed to the wrong
22groups.
23
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080024== ACCESS
Gustaf Lundhbf53a702012-11-15 18:24:32 -080025Administrators
26
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080027== OPTIONS
Gustaf Lundhbf53a702012-11-15 18:24:32 -080028--project::
29-p::
Christian Aistleitnera0e111e2013-04-30 20:17:29 +020030 Required; Name of the project for which the refs should be listed.
Gustaf Lundhbf53a702012-11-15 18:24:32 -080031
32--user::
33-u::
Christian Aistleitnera0e111e2013-04-30 20:17:29 +020034 Required; User for which the visible refs should be listed. Gerrit
Dave Borowitzada289c2018-12-18 13:24:14 -080035 will query the index to find matching users, so the full
36 identity/name does not need to be specified.
Gustaf Lundhbf53a702012-11-15 18:24:32 -080037
Gustaf Lundh2f7bdc12012-11-18 18:24:39 -080038--only-refs-heads::
39 Only list the refs found under refs/heads/*
40
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080041== EXAMPLES
Gustaf Lundhbf53a702012-11-15 18:24:32 -080042
43List visible refs for the user "mr.developer" in project "gerrit"
Michael Ochmannb99feab2016-07-06 14:10:22 +020044----
David Shevitze369eee2018-09-26 12:31:46 -070045$ ssh -p 29418 review.example.com gerrit ls-user-refs -p gerrit -u mr.developer
Michael Ochmannb99feab2016-07-06 14:10:22 +020046----
Gustaf Lundhbf53a702012-11-15 18:24:32 -080047
48GERRIT
49------
50Part of link:index.html[Gerrit Code Review]
Yuxuan 'fishy' Wang99cb68d2013-10-31 17:26:00 -070051
52SEARCHBOX
53---------