blob: 25a99d1205744917af602504e5ad28babf5b1f88 [file] [log] [blame]
Gustaf Lundhbf53a702012-11-15 18:24:32 -08001gerrit ls-user-refs
2===================
3
4NAME
5----
6gerrit ls-user-refs - List refs visible to a specific user
7
8SYNOPSIS
9--------
10[verse]
Christian Aistleitner870fad22013-05-01 12:19:28 +020011'ssh' -p <port> <host> 'gerrit ls-user-refs'
Gustaf Lundhbf53a702012-11-15 18:24:32 -080012 [--project PROJECT> | -p <PROJECT>]
13 [--user <USER> | -u <USER>]
Gustaf Lundh2f7bdc12012-11-18 18:24:39 -080014 [--only-refs-heads]
Gustaf Lundhbf53a702012-11-15 18:24:32 -080015
16DESCRIPTION
17-----------
18Displays all refs that the specified user can see.
19
20Allows an administrator to query which refs are visible for
21a user. The command is helpful for admins when debugging why a
22user cannot access certain refs and also to help admins
23verify that certain secret refs are not exposed to the wrong
24groups.
25
26ACCESS
27------
28Administrators
29
30OPTIONS
31-------
32--project::
33-p::
Christian Aistleitnera0e111e2013-04-30 20:17:29 +020034 Required; Name of the project for which the refs should be listed.
Gustaf Lundhbf53a702012-11-15 18:24:32 -080035
36--user::
37-u::
Christian Aistleitnera0e111e2013-04-30 20:17:29 +020038 Required; User for which the visible refs should be listed. Gerrit
Gustaf Lundhbf53a702012-11-15 18:24:32 -080039 will query the database to find matching users, so the
40 full identity/name does not need to be specified.
41
Gustaf Lundh2f7bdc12012-11-18 18:24:39 -080042--only-refs-heads::
43 Only list the refs found under refs/heads/*
44
Gustaf Lundhbf53a702012-11-15 18:24:32 -080045EXAMPLES
46--------
47
48List visible refs for the user "mr.developer" in project "gerrit"
49=====
50 $ ssh -p 29418 review.example.com gerrit ls-user-refs -p gerrit -u mr.developer
51=====
52
53GERRIT
54------
55Part of link:index.html[Gerrit Code Review]