How gerritcodereview/gerrit works
Gerrit is a Git-based code review and project-management server. Its core workflow is that project users submit changes, reviewers inspect diffs and add inline comments, and authorized users submit approved changes to the project’s Git repository. The supplied README documents those stages but the sampled implementation is sparse; the graph therefore preserves them as documented capabilities and separately shows the sampled audit-dispatch and flow-service contracts. Repository internals beyond the excerpts and SOURCE INDEX relationships are not inferred.
Main entry points: AuditService.java Audit dispatch · FakeGroupAuditService.java Test audit recorder · GroupAuditService.java Group audit API · GitRepositoryManager.java Git repository
Components 12
Code review
- Submit changes
- Side-by-side diffs
- Inline comments
- Review approval
Project management
- Git repository
java/com/google/gerrit/server/git/GitRepositoryManager.java - Change flows
java/com/google/gerrit/server/flow/FlowService.java
Server services
- Group audit API
java/com/google/gerrit/server/group/GroupAuditService.java - Audit dispatch
java/com/google/gerrit/server/audit/AuditService.java - Audit listeners
java/com/google/gerrit/server/audit/AuditService.java - Test audit recorder
java/com/google/gerrit/acceptance/FakeGroupAuditService.java - Git HTTP metrics
java/com/google/gerrit/acceptance/FakeGroupAuditService.java
Other components
- Project users
Connections 10
- Project users → Submit changes: submit changes
- Submit changes → Side-by-side diffs: review changes
- Project users → Inline comments: add comments
- Project users → Review approval: approve changes
- Review approval → Git repository: submit approved
- Project users → Change flows: manage flows
- Group audit API → Audit dispatch: implements
java/com/google/gerrit/server/audit/AuditService.java - Audit dispatch → Audit listeners: dispatches events
java/com/google/gerrit/server/audit/AuditService.java - Test audit recorder → Audit dispatch: delegates dispatch
java/com/google/gerrit/acceptance/FakeGroupAuditService.java - Test audit recorder → Git HTTP metrics: counts requests
java/com/google/gerrit/acceptance/FakeGroupAuditService.java