forked from google/zoekt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CONTRIBUTING
46 lines (26 loc) · 1.19 KB
/
CONTRIBUTING
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
Before sending a patch, please fill out a Google CLA,
using the following form:
https://cla.developers.google.com/clas
For submitting patches, please use gerrit:
* Make sure all tests pass:
go test github.com/google/zoekt/...
* Add the following to your .git/config:
[remote "gerrit"]
url = https://gerrit.googlesource.com/zoekt
fetch = +refs/heads/*:refs/remotes/origin/*
* Create an account at https://gerrit-review.googlesource.com/
and follow `Settings -> HTTP Credentials -> Obtain password`
* Add a Change ID to the bottom of your commit message: run the following,
and append its output to your commmit message
echo "Change-Id: I"$(head -c 20 /dev/urandom | sha1sum | awk '{print $1}')
Or install the hook:
curl -Lo .git/hooks/commit-msg https://gerrit-review.googlesource.com/tools/hooks/commit-msg
chmod +x .git/hooks/commit-msg
* Upload to gerrit:
git push gerrit HEAD:refs/for/master
* Add [email protected] as a reviewer in the Web UI
* To make changes in response to the review, do
git commit --amend
and include your updated files into the commit. Then
git push gerrit HEAD:refs/for/master
will push a new patchset.