aboutsummaryrefslogtreecommitdiff
path: root/git-codereview/doc.go
diff options
context:
space:
mode:
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>2016-08-04 12:01:48 -0300
committerAndrew Gerrand <adg@golang.org>2016-08-08 01:08:54 +0000
commite143ba9c054637a068c21480cee8249caa0d8f9f (patch)
tree01f1f9360a80b1086861f52f985b78883a5bf883 /git-codereview/doc.go
parent748a6d4e5a0ffe1e2a92e4ae5dcd6ee67a4b1b43 (diff)
downloadgo-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.go18
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