diff options
| author | Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com> | 2016-08-04 12:01:48 -0300 |
|---|---|---|
| committer | Andrew Gerrand <adg@golang.org> | 2016-08-08 01:08:54 +0000 |
| commit | e143ba9c054637a068c21480cee8249caa0d8f9f (patch) | |
| tree | 01f1f9360a80b1086861f52f985b78883a5bf883 /git-codereview/doc.go | |
| parent | 748a6d4e5a0ffe1e2a92e4ae5dcd6ee67a4b1b43 (diff) | |
| download | go-x-review-e143ba9c054637a068c21480cee8249caa0d8f9f.tar.xz | |
git-codereview: add documentation about codereview.cfg
Change-Id: Icca030fcd9a779f5d082969f693504362eb5a50c
Reviewed-on: https://go-review.googlesource.com/25465
Reviewed-by: Andrew Gerrand <adg@golang.org>
Diffstat (limited to 'git-codereview/doc.go')
| -rw-r--r-- | git-codereview/doc.go | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/git-codereview/doc.go b/git-codereview/doc.go index 2518c3d..ebb1420 100644 --- a/git-codereview/doc.go +++ b/git-codereview/doc.go @@ -274,5 +274,23 @@ The sync command updates the local repository. It fetches commits from the remote repository and merges them from the upstream branch to the current branch, rebasing any pending changes. +Configuration + +If a file named codereview.cfg is present in the repository root, +git-codereview will use it for configuration. It should contain lines +of this format: + + key: value + +The ``gerrit'' key sets the Gerrit URL for this project. Git-codereview +automatically derives the Gerrit URL from repositories hosted in +*.googlesource.com. If not set or derived, the repository is assumed to +not have Gerrit, and certain features won't work. + +The ``issuerepo'' key specifies the GitHub repository to use for issues, if +different from the source repository. If set to ``golang/go'', for example, +lines such as ``Fixes #123'' in a commit message will be rewritten to ``Fixes +golang/go#123''. + */ package main |
