blob: 2b64d7783ebb1d211ca79f9432d84297767cc0fa [file] [log] [blame]
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -08001= gerrit set-project
Deniz Türkoglu01c75892012-05-09 12:43:02 -07002
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -08003== NAME
Deniz Türkoglu01c75892012-05-09 12:43:02 -07004gerrit set-project - Change a project's settings.
5
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -08006== SYNOPSIS
Yuxuan 'fishy' Wangd85b6872013-11-15 11:47:46 -08007--
Deniz Türkoglu01c75892012-05-09 12:43:02 -07008'ssh' -p <port> <host> 'gerrit set-project'
9 [--description <DESC> | -d <DESC>]
Edwin Kempin73b26982012-07-16 13:53:22 +020010 [--submit-type <TYPE> | -t <TYPE>]
Shawn O. Pearce2462ccb2012-10-17 18:20:40 -070011 [--contributor-agreements <true|false|inherit>]
12 [--signed-off-by <true|false|inherit>]
13 [--content-merge <true|false|inherit>]
14 [--change-id <true|false|inherit>]
15 [--project-state <STATE> | --ps <STATE>]
Sasa Zivkova1ec9412013-07-01 15:01:59 +020016 [--max-object-size-limit <N>]
Deniz Türkoglu01c75892012-05-09 12:43:02 -070017 <NAME>
Yuxuan 'fishy' Wangd85b6872013-11-15 11:47:46 -080018--
Deniz Türkoglu01c75892012-05-09 12:43:02 -070019
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080020== DESCRIPTION
Deniz Türkoglu01c75892012-05-09 12:43:02 -070021Modifies a given project's settings. This command can be useful to
22batch change projects.
23
24The command is argument-safe, that is, if no argument is given the
25previous settings are kept intact.
26
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080027== ACCESS
Deniz Türkoglu01c75892012-05-09 12:43:02 -070028Caller must be a member of the privileged 'Administrators' group.
29
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080030== SCRIPTING
Deniz Türkoglu01c75892012-05-09 12:43:02 -070031This command is intended to be used in scripts.
32
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080033== OPTIONS
Deniz Türkoglu01c75892012-05-09 12:43:02 -070034<NAME>::
35 Required; name of the project to edit. If name ends
36 with `.git` the suffix will be automatically removed.
37
38--description::
39-d::
40 New description of the project. If not specified,
41 the old description is kept.
42+
43Description values containing spaces should be quoted in single quotes
44('). This most likely requires double quoting the value, for example
45`--description "'A description string'"`.
46
47--submit-type::
48-t::
49 Action used by Gerrit to submit an approved change to its
50 destination branch. Supported options are:
51+
52* FAST_FORWARD_ONLY: produces a strictly linear history.
53* MERGE_IF_NECESSARY: create a merge commit when required.
David Pursehousea80f0e22013-09-16 22:25:05 +090054* REBASE_IF_NECESSARY: rebase the commit when required.
Deniz Türkoglu01c75892012-05-09 12:43:02 -070055* MERGE_ALWAYS: always create a merge commit.
56* CHERRY_PICK: always cherry-pick the commit.
57
58+
59For more details see
Stefan Lay08ba4732014-05-05 16:36:12 +020060link:project-configuration.html#submit_type[Submit Types].
Deniz Türkoglu01c75892012-05-09 12:43:02 -070061
Shawn O. Pearce2462ccb2012-10-17 18:20:40 -070062--content-merge::
Deniz Türkoglu01c75892012-05-09 12:43:02 -070063 If enabled, Gerrit will try to perform a 3-way merge of text
64 file content when a file has been modified by both the
65 destination branch and the change being submitted. This
66 option only takes effect if submit type is not
67 FAST_FORWARD_ONLY.
68
Shawn O. Pearce2462ccb2012-10-17 18:20:40 -070069--contributor-agreements::
Deniz Türkoglu01c75892012-05-09 12:43:02 -070070 If enabled, authors must complete a contributor agreement
71 on the site before pushing any commits or changes to this
72 project.
73
Shawn O. Pearce2462ccb2012-10-17 18:20:40 -070074--signed-off-by::
Deniz Türkoglu01c75892012-05-09 12:43:02 -070075 If enabled, each change must contain a Signed-off-by line
76 from either the author or the uploader in the commit message.
77
Shawn O. Pearce2462ccb2012-10-17 18:20:40 -070078--change-id::
Deniz Türkoglu01c75892012-05-09 12:43:02 -070079 Require a valid link:user-changeid.html[Change-Id] footer
80 in any commit uploaded for review. This does not apply to
81 commits pushed directly to a branch or tag.
82
83--project-state::
84--ps::
85 Set project's visibility.
86+
87* ACTIVE: project is regular and is the default value.
88* READ_ONLY: users can see the project if read permission
89is granted, but all modification operations are disabled.
90* HIDDEN: the project is not visible for those who are not owners
91
Sasa Zivkova1ec9412013-07-01 15:01:59 +020092--max-object-size-limit::
93 Define maximum Git object size for this project. Pushes containing an
94 object larger than this limit will be rejected. This can be used to
95 further limit the global
96 link:config-gerrit.html#receive.maxObjectSizeLimit[receive.maxObjectSizeLimit]
97 and cannot be used to increase that globally set limit.
98+
99Common unit suffixes of 'k', 'm', or 'g' are supported.
100
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -0800101== EXAMPLES
Deniz Türkoglu01c75892012-05-09 12:43:02 -0700102Change project `example` to be hidden, require change id, don't use content merge
103and use 'merge if necessary' as merge strategy:
104
105====
106 $ ssh -p 29418 review.example.com gerrit set-project example --submit-type MERGE_IF_NECESSARY\
Shawn O. Pearce2462ccb2012-10-17 18:20:40 -0700107 --change-id true --content-merge false --project-state HIDDEN
Deniz Türkoglu01c75892012-05-09 12:43:02 -0700108====
109
110GERRIT
111------
Sasa Zivkova1ec9412013-07-01 15:01:59 +0200112Part of link:index.html[Gerrit Code Review]
Yuxuan 'fishy' Wang99cb68d2013-10-31 17:26:00 -0700113
114SEARCHBOX
115---------