blob: 5f5deedb4d2f5abfb5f852e4cf8ce1fe2f2f1ea7 [file] [log] [blame]
David Shevitz42135f92017-07-13 09:52:28 -07001= How Gerrit Works
2
Janet Davies85909022018-09-18 11:12:35 -07003To learn how Gerrit fits into and complements the developer workflow, consider
4a typical project. The following project contains a central source repository
Janet Daviesffd47762018-07-17 13:50:32 -07005(_Authoritative Repository_) that serves as the authoritative version of the
6project's contents.
David Shevitz42135f92017-07-13 09:52:28 -07007
Janet Davies85909022018-09-18 11:12:35 -07008.Central Source Repository
9image::images/intro-quick-central-repo.png[Authoritative Source Repository]
David Shevitz42135f92017-07-13 09:52:28 -070010
Janet Davies85909022018-09-18 11:12:35 -070011When implemented, Gerrit becomes the central source repository and introduces
12an additional concept: a store of _Pending Changes_.
David Shevitz42135f92017-07-13 09:52:28 -070013
Janet Davies85909022018-09-18 11:12:35 -070014.Gerrit as the Central Repository
15image::images/intro-quick-central-gerrit.png[Gerrit as the Central Repository]
David Shevitz42135f92017-07-13 09:52:28 -070016
Janet Davies85909022018-09-18 11:12:35 -070017When Gerrit is configured as the central source repository, all code changes
18are sent to Pending Changes for others to review and discuss. When enough
19reviewers have approved a code change, you can submit the change to the code
20base.
David Shevitz42135f92017-07-13 09:52:28 -070021
Janet Daviesffd47762018-07-17 13:50:32 -070022In addition to the store of Pending Changes, Gerrit captures notes and comments
23made about each change. This enables you to review changes at your convenience
Janet Davies85909022018-09-18 11:12:35 -070024or when a conversation about a change can't happen in person. In addition,
25notes and comments provide a history of each change (what was changed and why and
26who reviewed the change).
David Shevitz42135f92017-07-13 09:52:28 -070027
Janet Davies85909022018-09-18 11:12:35 -070028Like any repository hosting product, Gerrit provides a powerful
29link:access-control.html[access control model], which enables you to
30fine-tune access to your repository.
David Shevitz42135f92017-07-13 09:52:28 -070031
32GERRIT
33------
34Part of link:index.html[Gerrit Code Review]
35
36SEARCHBOX
37---------