2013-12-20 12:55:51 -08:00
|
|
|
= gerrit ban-commit
|
2012-03-30 08:11:47 +02:00
|
|
|
|
2013-12-20 12:55:51 -08:00
|
|
|
== NAME
|
2012-03-30 08:11:47 +02:00
|
|
|
gerrit ban-commit - Bans a commit from a project's repository.
|
|
|
|
|
2013-12-20 12:55:51 -08:00
|
|
|
== SYNOPSIS
|
2016-06-23 17:07:37 +02:00
|
|
|
[verse]
|
2013-11-15 11:47:46 -08:00
|
|
|
--
|
2016-06-23 17:07:37 +02:00
|
|
|
_ssh_ -p <port> <host> _gerrit ban-commit_
|
2012-03-30 08:11:47 +02:00
|
|
|
[--reason <REASON>]
|
|
|
|
<PROJECT>
|
|
|
|
<COMMIT> ...
|
2013-11-15 11:47:46 -08:00
|
|
|
--
|
2012-03-30 08:11:47 +02:00
|
|
|
|
2013-12-20 12:55:51 -08:00
|
|
|
== DESCRIPTION
|
2012-03-30 08:11:47 +02:00
|
|
|
Marks a commit as banned for the specified repository. If a commit is
|
|
|
|
banned Gerrit rejects every push that includes this commit with
|
|
|
|
link:error-contains-banned-commit.html[contains banned commit ...].
|
|
|
|
|
|
|
|
[NOTE]
|
|
|
|
This command just marks the commit as banned, but it does not remove
|
|
|
|
the commit from the history of any central branch. This needs to be
|
|
|
|
done manually.
|
|
|
|
|
2013-12-20 12:55:51 -08:00
|
|
|
== ACCESS
|
2012-03-30 08:11:47 +02:00
|
|
|
Caller must be owner of the project or be a member of the privileged
|
|
|
|
'Administrators' group.
|
|
|
|
|
2013-12-20 12:55:51 -08:00
|
|
|
== SCRIPTING
|
2012-03-30 08:11:47 +02:00
|
|
|
This command is intended to be used in scripts.
|
|
|
|
|
2013-12-20 12:55:51 -08:00
|
|
|
== OPTIONS
|
2012-03-30 08:11:47 +02:00
|
|
|
<PROJECT>::
|
|
|
|
Required; name of the project for which the commit should be
|
|
|
|
banned.
|
|
|
|
|
|
|
|
<COMMIT>::
|
|
|
|
Required; commit(s) that should be banned.
|
|
|
|
|
|
|
|
--reason::
|
|
|
|
Reason for banning the commit.
|
|
|
|
|
2013-12-20 12:55:51 -08:00
|
|
|
== EXAMPLES
|
2012-03-30 08:11:47 +02:00
|
|
|
Ban commit `421919d015c062fd28901fe144a78a555d0b5984` from project
|
|
|
|
`myproject`:
|
|
|
|
|
2016-07-06 14:10:22 +02:00
|
|
|
----
|
2012-03-30 08:11:47 +02:00
|
|
|
$ ssh -p 29418 review.example.com gerrit ban-commit myproject \
|
|
|
|
421919d015c062fd28901fe144a78a555d0b5984
|
2016-07-06 14:10:22 +02:00
|
|
|
----
|
2012-03-30 08:11:47 +02:00
|
|
|
|
|
|
|
GERRIT
|
|
|
|
------
|
|
|
|
Part of link:index.html[Gerrit Code Review]
|
2013-10-31 17:26:00 -07:00
|
|
|
|
|
|
|
SEARCHBOX
|
|
|
|
---------
|