blob: 11cb74c23b124f7f0e037daa3efd558c604301c7 [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
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 set-project_
Deniz Türkoglu01c75892012-05-09 12:43:02 -070010 [--description <DESC> | -d <DESC>]
Edwin Kempin73b26982012-07-16 13:53:22 +020011 [--submit-type <TYPE> | -t <TYPE>]
Shawn O. Pearce2462ccb2012-10-17 18:20:40 -070012 [--contributor-agreements <true|false|inherit>]
13 [--signed-off-by <true|false|inherit>]
14 [--content-merge <true|false|inherit>]
15 [--change-id <true|false|inherit>]
16 [--project-state <STATE> | --ps <STATE>]
Sasa Zivkova1ec9412013-07-01 15:01:59 +020017 [--max-object-size-limit <N>]
Deniz Türkoglu01c75892012-05-09 12:43:02 -070018 <NAME>
Yuxuan 'fishy' Wangd85b6872013-11-15 11:47:46 -080019--
Deniz Türkoglu01c75892012-05-09 12:43:02 -070020
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080021== DESCRIPTION
Deniz Türkoglu01c75892012-05-09 12:43:02 -070022Modifies a given project's settings. This command can be useful to
23batch change projects.
24
25The command is argument-safe, that is, if no argument is given the
26previous settings are kept intact.
27
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080028== ACCESS
Deniz Türkoglu01c75892012-05-09 12:43:02 -070029Caller must be a member of the privileged 'Administrators' group.
30
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080031== SCRIPTING
Deniz Türkoglu01c75892012-05-09 12:43:02 -070032This command is intended to be used in scripts.
33
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080034== OPTIONS
Deniz Türkoglu01c75892012-05-09 12:43:02 -070035<NAME>::
36 Required; name of the project to edit. If name ends
37 with `.git` the suffix will be automatically removed.
38
39--description::
40-d::
41 New description of the project. If not specified,
42 the old description is kept.
43+
44Description values containing spaces should be quoted in single quotes
45('). This most likely requires double quoting the value, for example
46`--description "'A description string'"`.
47
48--submit-type::
49-t::
50 Action used by Gerrit to submit an approved change to its
51 destination branch. Supported options are:
52+
53* FAST_FORWARD_ONLY: produces a strictly linear history.
54* MERGE_IF_NECESSARY: create a merge commit when required.
David Pursehousea80f0e22013-09-16 22:25:05 +090055* REBASE_IF_NECESSARY: rebase the commit when required.
Deniz Türkoglu01c75892012-05-09 12:43:02 -070056* MERGE_ALWAYS: always create a merge commit.
57* CHERRY_PICK: always cherry-pick the commit.
58
59+
60For more details see
Stefan Lay08ba4732014-05-05 16:36:12 +020061link:project-configuration.html#submit_type[Submit Types].
Deniz Türkoglu01c75892012-05-09 12:43:02 -070062
Shawn O. Pearce2462ccb2012-10-17 18:20:40 -070063--content-merge::
Deniz Türkoglu01c75892012-05-09 12:43:02 -070064 If enabled, Gerrit will try to perform a 3-way merge of text
65 file content when a file has been modified by both the
66 destination branch and the change being submitted. This
67 option only takes effect if submit type is not
68 FAST_FORWARD_ONLY.
69
Shawn O. Pearce2462ccb2012-10-17 18:20:40 -070070--contributor-agreements::
Deniz Türkoglu01c75892012-05-09 12:43:02 -070071 If enabled, authors must complete a contributor agreement
72 on the site before pushing any commits or changes to this
73 project.
74
Shawn O. Pearce2462ccb2012-10-17 18:20:40 -070075--signed-off-by::
Deniz Türkoglu01c75892012-05-09 12:43:02 -070076 If enabled, each change must contain a Signed-off-by line
77 from either the author or the uploader in the commit message.
78
Shawn O. Pearce2462ccb2012-10-17 18:20:40 -070079--change-id::
Deniz Türkoglu01c75892012-05-09 12:43:02 -070080 Require a valid link:user-changeid.html[Change-Id] footer
81 in any commit uploaded for review. This does not apply to
82 commits pushed directly to a branch or tag.
83
84--project-state::
85--ps::
86 Set project's visibility.
87+
88* ACTIVE: project is regular and is the default value.
89* READ_ONLY: users can see the project if read permission
90is granted, but all modification operations are disabled.
91* HIDDEN: the project is not visible for those who are not owners
92
Sasa Zivkova1ec9412013-07-01 15:01:59 +020093--max-object-size-limit::
94 Define maximum Git object size for this project. Pushes containing an
95 object larger than this limit will be rejected. This can be used to
96 further limit the global
97 link:config-gerrit.html#receive.maxObjectSizeLimit[receive.maxObjectSizeLimit]
98 and cannot be used to increase that globally set limit.
99+
100Common unit suffixes of 'k', 'm', or 'g' are supported.
101
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -0800102== EXAMPLES
Deniz Türkoglu01c75892012-05-09 12:43:02 -0700103Change project `example` to be hidden, require change id, don't use content merge
104and use 'merge if necessary' as merge strategy:
105
Michael Ochmannb99feab2016-07-06 14:10:22 +0200106----
Deniz Türkoglu01c75892012-05-09 12:43:02 -0700107 $ ssh -p 29418 review.example.com gerrit set-project example --submit-type MERGE_IF_NECESSARY\
Shawn O. Pearce2462ccb2012-10-17 18:20:40 -0700108 --change-id true --content-merge false --project-state HIDDEN
Michael Ochmannb99feab2016-07-06 14:10:22 +0200109----
Deniz Türkoglu01c75892012-05-09 12:43:02 -0700110
111GERRIT
112------
Sasa Zivkova1ec9412013-07-01 15:01:59 +0200113Part of link:index.html[Gerrit Code Review]
Yuxuan 'fishy' Wang99cb68d2013-10-31 17:26:00 -0700114
115SEARCHBOX
116---------