blob: cee562b6844313c7d144a94585991a12605d8001 [file] [log] [blame]
Martin Fick563a3e62015-04-02 13:37:53 -06001= Gerrit Code Review - Named Destinations
2
Prudhvi Akhil Alahari01822da2023-07-17 17:00:38 +05303[[user-or-group-named-destinations]]
4== User Or Group Named Destinations
5It is possible to define named destination sets on a user or group level.
Martin Fick563a3e62015-04-02 13:37:53 -06006To do this, define the named destination sets in files named after
7each destination set in the `destinations` directory of the user's
Prudhvi Akhil Alahari01822da2023-07-17 17:00:38 +05308or group's account ref in the `All-Users` project. The user's account ref is
9based on the user's account id which is an integer. The user account refs
10are sharded by the last two digits (`+nn+`) in the refname, leading to refs
11of the format `+refs/users/nn/accountid+`. Similarly, the group's ref is
12based on the group id which is a UUID. The group refs are sharded
13by the first 2 characters of the group UUID, leading to a refs of the
14format `+refs/groups/cc/groupid+`.
15
16The destination files are a 2 column tab delimited file. Each
Martin Fick563a3e62015-04-02 13:37:53 -060017row in a destination file represents a single destination in the
18named set. The left column represents the ref of the destination,
19and the right column represents the project of the destination.
Prudhvi Akhil Alahari02933c82020-10-15 23:25:07 +053020The named destinations can be publicly accessible by other users.
Martin Fick563a3e62015-04-02 13:37:53 -060021
22Example destination file named `destinations/myreviews`:
23
24----
25# Ref Project
26#
27refs/heads/master gerrit
28refs/heads/stable-2.11 gerrit
29refs/heads/master plugins/cookbook-plugin
30----
31
32GERRIT
33------
34Part of link:index.html[Gerrit Code Review]
35
36SEARCHBOX
37---------