Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 1 | = gerrit set-project |
Deniz Türkoglu | 01c7589 | 2012-05-09 12:43:02 -0700 | [diff] [blame] | 2 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 3 | == NAME |
Deniz Türkoglu | 01c7589 | 2012-05-09 12:43:02 -0700 | [diff] [blame] | 4 | gerrit set-project - Change a project's settings. |
| 5 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 6 | == SYNOPSIS |
Yuxuan 'fishy' Wang | d85b687 | 2013-11-15 11:47:46 -0800 | [diff] [blame] | 7 | -- |
Deniz Türkoglu | 01c7589 | 2012-05-09 12:43:02 -0700 | [diff] [blame] | 8 | 'ssh' -p <port> <host> 'gerrit set-project' |
| 9 | [--description <DESC> | -d <DESC>] |
Edwin Kempin | 73b2698 | 2012-07-16 13:53:22 +0200 | [diff] [blame] | 10 | [--submit-type <TYPE> | -t <TYPE>] |
Shawn O. Pearce | 2462ccb | 2012-10-17 18:20:40 -0700 | [diff] [blame] | 11 | [--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 Zivkov | a1ec941 | 2013-07-01 15:01:59 +0200 | [diff] [blame] | 16 | [--max-object-size-limit <N>] |
Deniz Türkoglu | 01c7589 | 2012-05-09 12:43:02 -0700 | [diff] [blame] | 17 | <NAME> |
Yuxuan 'fishy' Wang | d85b687 | 2013-11-15 11:47:46 -0800 | [diff] [blame] | 18 | -- |
Deniz Türkoglu | 01c7589 | 2012-05-09 12:43:02 -0700 | [diff] [blame] | 19 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 20 | == DESCRIPTION |
Deniz Türkoglu | 01c7589 | 2012-05-09 12:43:02 -0700 | [diff] [blame] | 21 | Modifies a given project's settings. This command can be useful to |
| 22 | batch change projects. |
| 23 | |
| 24 | The command is argument-safe, that is, if no argument is given the |
| 25 | previous settings are kept intact. |
| 26 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 27 | == ACCESS |
Deniz Türkoglu | 01c7589 | 2012-05-09 12:43:02 -0700 | [diff] [blame] | 28 | Caller must be a member of the privileged 'Administrators' group. |
| 29 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 30 | == SCRIPTING |
Deniz Türkoglu | 01c7589 | 2012-05-09 12:43:02 -0700 | [diff] [blame] | 31 | This command is intended to be used in scripts. |
| 32 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 33 | == OPTIONS |
Deniz Türkoglu | 01c7589 | 2012-05-09 12:43:02 -0700 | [diff] [blame] | 34 | <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 | + |
| 43 | Description 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 Pursehouse | a80f0e2 | 2013-09-16 22:25:05 +0900 | [diff] [blame] | 54 | * REBASE_IF_NECESSARY: rebase the commit when required. |
Deniz Türkoglu | 01c7589 | 2012-05-09 12:43:02 -0700 | [diff] [blame] | 55 | * MERGE_ALWAYS: always create a merge commit. |
| 56 | * CHERRY_PICK: always cherry-pick the commit. |
| 57 | |
| 58 | + |
| 59 | For more details see |
Stefan Lay | 08ba473 | 2014-05-05 16:36:12 +0200 | [diff] [blame] | 60 | link:project-configuration.html#submit_type[Submit Types]. |
Deniz Türkoglu | 01c7589 | 2012-05-09 12:43:02 -0700 | [diff] [blame] | 61 | |
Shawn O. Pearce | 2462ccb | 2012-10-17 18:20:40 -0700 | [diff] [blame] | 62 | --content-merge:: |
Deniz Türkoglu | 01c7589 | 2012-05-09 12:43:02 -0700 | [diff] [blame] | 63 | 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. Pearce | 2462ccb | 2012-10-17 18:20:40 -0700 | [diff] [blame] | 69 | --contributor-agreements:: |
Deniz Türkoglu | 01c7589 | 2012-05-09 12:43:02 -0700 | [diff] [blame] | 70 | 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. Pearce | 2462ccb | 2012-10-17 18:20:40 -0700 | [diff] [blame] | 74 | --signed-off-by:: |
Deniz Türkoglu | 01c7589 | 2012-05-09 12:43:02 -0700 | [diff] [blame] | 75 | 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. Pearce | 2462ccb | 2012-10-17 18:20:40 -0700 | [diff] [blame] | 78 | --change-id:: |
Deniz Türkoglu | 01c7589 | 2012-05-09 12:43:02 -0700 | [diff] [blame] | 79 | 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 |
| 89 | is granted, but all modification operations are disabled. |
| 90 | * HIDDEN: the project is not visible for those who are not owners |
| 91 | |
Sasa Zivkov | a1ec941 | 2013-07-01 15:01:59 +0200 | [diff] [blame] | 92 | --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 | + |
| 99 | Common unit suffixes of 'k', 'm', or 'g' are supported. |
| 100 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 101 | == EXAMPLES |
Deniz Türkoglu | 01c7589 | 2012-05-09 12:43:02 -0700 | [diff] [blame] | 102 | Change project `example` to be hidden, require change id, don't use content merge |
| 103 | and 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. Pearce | 2462ccb | 2012-10-17 18:20:40 -0700 | [diff] [blame] | 107 | --change-id true --content-merge false --project-state HIDDEN |
Deniz Türkoglu | 01c7589 | 2012-05-09 12:43:02 -0700 | [diff] [blame] | 108 | ==== |
| 109 | |
| 110 | GERRIT |
| 111 | ------ |
Sasa Zivkov | a1ec941 | 2013-07-01 15:01:59 +0200 | [diff] [blame] | 112 | Part of link:index.html[Gerrit Code Review] |
Yuxuan 'fishy' Wang | 99cb68d | 2013-10-31 17:26:00 -0700 | [diff] [blame] | 113 | |
| 114 | SEARCHBOX |
| 115 | --------- |