<feed xmlns='http://www.w3.org/2005/Atom'>
<title>go-x-review/git-codereview/api.go, branch main</title>
<subtitle>Fork of golang.org/x/review with my patches.</subtitle>
<id>http://git.kilabit.info/go-x-review/atom?h=main</id>
<link rel='self' href='http://git.kilabit.info/go-x-review/atom?h=main'/>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-review/'/>
<updated>2026-04-09T15:20:06Z</updated>
<entry>
<title>git-codereview: support remote other than "origin"</title>
<updated>2026-04-09T15:20:06Z</updated>
<author>
<name>Shulhan</name>
<email>m.shulhan@gmail.com</email>
</author>
<published>2024-07-20T20:48:32Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-review/commit/?id=31f678e5a420fecf567c30bc66e40b43ad85fd17'/>
<id>urn:sha1:31f678e5a420fecf567c30bc66e40b43ad85fd17</id>
<content type='text'>
For the git-codereview commands to works on any Go's repositories, the
remote name for "origin" must be pointed to the Go original repository URL
(in most cases the one with go.googlesource.com domain).

The problem is when the "origin" is from the fork, all of the
git-codereview commands then will not works.

For example, in computer X, I clone the this repository from
"https://go.googlesource.com/review" (the origin) and then push my
changes on "git@git.sr.ht:~shulhan/go-x-review" (the fork).
In another computer Y, I then clone from the fork to continue my works.
The fork become origin.

One of the solution is to rename the remote names manually each time we
clone the fork.
The only cons using this solution is every time new branch created we need
to remember to pass "--set-upstream" during git push.

This changes introduce "remote" configuration in codereview.cfg.
When one first working on fork of Go repository, they set the "remote"
key, commit it, and push it.
When they cloned the fork, they did not needs to changes anything except
adding new remote using the pre-defined name.

Change-Id: I335d08fd8b7efe17ba07b3c0a3794f9ccf59b339
</content>
</entry>
<entry>
<title>git-codereview: fix some comments</title>
<updated>2025-10-24T16:37:34Z</updated>
<author>
<name>cuishuang</name>
<email>imcusg@gmail.com</email>
</author>
<published>2025-10-21T02:35:27Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-review/commit/?id=b313cd9402503ea9ae851855a00bff2e45c50655'/>
<id>urn:sha1:b313cd9402503ea9ae851855a00bff2e45c50655</id>
<content type='text'>
Change-Id: I0650c81a855138049e9132d56cc742620ecaf185
Reviewed-on: https://go-review.googlesource.com/c/review/+/713362
Reviewed-by: Sean Liao &lt;sean@liao.dev&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Auto-Submit: Sean Liao &lt;sean@liao.dev&gt;
Reviewed-by: David Chase &lt;drchase@google.com&gt;
Reviewed-by: Dmitri Shuralyov &lt;dmitshur@google.com&gt;
</content>
</entry>
<entry>
<title>git-codereview: remove usage of io/ioutil</title>
<updated>2024-01-25T17:04:12Z</updated>
<author>
<name>Joshua Sing</name>
<email>joshua@hypera.dev</email>
</author>
<published>2023-11-19T03:29:24Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-review/commit/?id=0e3f2836ef3e230ced34f5550aa937610e076531'/>
<id>urn:sha1:0e3f2836ef3e230ced34f5550aa937610e076531</id>
<content type='text'>
io/ioutil is now deprecated. Use non-deprecated equivalents.

Change-Id: Iad1cc9c14dbdad3a6f9ada25072bc194bace4081
Reviewed-on: https://go-review.googlesource.com/c/review/+/543615
Reviewed-by: qiulaidongfeng &lt;2645477756@qq.com&gt;
Auto-Submit: Dmitri Shuralyov &lt;dmitshur@golang.org&gt;
Reviewed-by: Cherry Mui &lt;cherryyz@google.com&gt;
Reviewed-by: Dmitri Shuralyov &lt;dmitshur@golang.org&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Reviewed-by: Dmitri Shuralyov &lt;dmitshur@google.com&gt;
</content>
</entry>
<entry>
<title>git-codereview: recognize sso://go/ and rpc://go/</title>
<updated>2023-06-02T02:03:04Z</updated>
<author>
<name>Russ Cox</name>
<email>rsc@golang.org</email>
</author>
<published>2023-06-01T21:06:44Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-review/commit/?id=d285cae025f6e6848090ddb748aade98677328db'/>
<id>urn:sha1:d285cae025f6e6848090ddb748aade98677328db</id>
<content type='text'>
Google engineers are now required to use these access methods
instead of https://go.googlesource.com/, so recognize them as
aliases.

(It is possible for every engineer to configure their Git clients with
insteadOf clauses to hide these from the codereview plugin, but
it's far less error-prone to just handle it here.)

Change-Id: Ic1c9a6b45aa61b11ff25ce21bca6e49344974b04
Reviewed-on: https://go-review.googlesource.com/c/review/+/499923
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Reviewed-by: Peter Weinberger &lt;pjw@google.com&gt;
Run-TryBot: Russ Cox &lt;rsc@golang.org&gt;
</content>
</entry>
<entry>
<title>git-codereview: allow trailing slash in git origin</title>
<updated>2022-11-01T17:36:02Z</updated>
<author>
<name>Benny Siegert</name>
<email>bsiegert@google.com</email>
</author>
<published>2022-10-13T18:18:34Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-review/commit/?id=197006278d6bfe1d37a22f19be41ed573d66796d'/>
<id>urn:sha1:197006278d6bfe1d37a22f19be41ed573d66796d</id>
<content type='text'>
An origin like "https://go.googlesource.com/build/" should also work.
Perhaps this should use net/url instead of parsing URLs by hand.

Change-Id: I5304324ae67c054b8377d500ecafe46b296d1531
Reviewed-on: https://go-review.googlesource.com/c/review/+/442875
Reviewed-by: Heschi Kreinick &lt;heschi@google.com&gt;
Run-TryBot: Benny Siegert &lt;bsiegert@gmail.com&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
</content>
</entry>
<entry>
<title>git-codereview: print more about Gerrit API errors</title>
<updated>2022-06-01T20:01:15Z</updated>
<author>
<name>Russ Cox</name>
<email>rsc@golang.org</email>
</author>
<published>2022-06-01T18:40:41Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-review/commit/?id=5579f240cbb7938362d82a9334c9f7a6a0d477b3'/>
<id>urn:sha1:5579f240cbb7938362d82a9334c9f7a6a0d477b3</id>
<content type='text'>
For golang/go#50576.

Change-Id: I3b67234098cbf9cd28bfa578c0b29744a4add2a3
Reviewed-on: https://go-review.googlesource.com/c/review/+/409914
Run-TryBot: Russ Cox &lt;rsc@golang.org&gt;
Reviewed-by: Dmitri Shuralyov &lt;dmitshur@google.com&gt;
Reviewed-by: Bryan Mills &lt;bcmills@google.com&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Reviewed-by: Dmitri Shuralyov &lt;dmitshur@golang.org&gt;
</content>
</entry>
<entry>
<title>git-codereview: print about all Gerrit API errors</title>
<updated>2022-04-14T15:34:40Z</updated>
<author>
<name>Russ Cox</name>
<email>rsc@golang.org</email>
</author>
<published>2022-04-12T20:16:53Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-review/commit/?id=ae62a0b8f23348d14a0270fafc2ee02ef5149a2e'/>
<id>urn:sha1:ae62a0b8f23348d14a0270fafc2ee02ef5149a2e</id>
<content type='text'>
Trying to chase down a problem with slow builders.
If this gets to be too chatty, we can limit it to builders.

For golang/go#50576.

Change-Id: I16c7818153d2444c897b4946ce7baebbd646ab23
Reviewed-on: https://go-review.googlesource.com/c/review/+/399116
Run-TryBot: Russ Cox &lt;rsc@golang.org&gt;
TryBot-Result: Gopher Robot &lt;gobot@golang.org&gt;
Reviewed-by: Bryan Mills &lt;bcmills@google.com&gt;
</content>
</entry>
<entry>
<title>git-codereview: pending: show unresolved comment count</title>
<updated>2021-02-23T10:45:24Z</updated>
<author>
<name>Russ Cox</name>
<email>rsc@golang.org</email>
</author>
<published>2021-02-17T15:23:46Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-review/commit/?id=2465c8e799238385f42c2e82d9f37a301cb066d0'/>
<id>urn:sha1:2465c8e799238385f42c2e82d9f37a301cb066d0</id>
<content type='text'>
Also fix a potential crash parsing a commit with no parents.

Change-Id: I1c289dde45230a3362f54037ea18023278b05ffd
Reviewed-on: https://go-review.googlesource.com/c/review/+/294129
Trust: Russ Cox &lt;rsc@golang.org&gt;
Run-TryBot: Russ Cox &lt;rsc@golang.org&gt;
TryBot-Result: Go Bot &lt;gobot@golang.org&gt;
Reviewed-by: Ian Lance Taylor &lt;iant@golang.org&gt;
</content>
</entry>
<entry>
<title>git-codereview: avoid race in loadGerritOrigin</title>
<updated>2021-01-27T23:04:16Z</updated>
<author>
<name>Ian Lance Taylor</name>
<email>iant@golang.org</email>
</author>
<published>2021-01-26T21:52:43Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-review/commit/?id=28abaf57728215cca0c42bf4ef3291109c9e271a'/>
<id>urn:sha1:28abaf57728215cca0c42bf4ef3291109c9e271a</id>
<content type='text'>
Use a mutex in loadGerritOrigin to avoid race when called in parallel
by "git coderevew pending". Add a new initialized field so that the
code knows when auth has been initialized. Adjust tests accordingly.
The test is simply "go test -race".

Fixes golang/go#43670

Change-Id: Ifb060fca6ed463f1d11a2959d03fca5e14e238c6
Reviewed-on: https://go-review.googlesource.com/c/review/+/287012
Trust: Ian Lance Taylor &lt;iant@golang.org&gt;
Run-TryBot: Ian Lance Taylor &lt;iant@golang.org&gt;
TryBot-Result: Go Bot &lt;gobot@golang.org&gt;
Reviewed-by: Bryan C. Mills &lt;bcmills@google.com&gt;
</content>
</entry>
<entry>
<title>git-codereview: remove use of Mergeable</title>
<updated>2020-03-11T14:50:59Z</updated>
<author>
<name>Russ Cox</name>
<email>rsc@golang.org</email>
</author>
<published>2020-03-11T13:43:46Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-review/commit/?id=180dd7fcad2ad38f8a3b778687cac4c1a5ca7627'/>
<id>urn:sha1:180dd7fcad2ad38f8a3b778687cac4c1a5ca7627</id>
<content type='text'>
Mergeable has been removed from the Gerrit API -
it was too expensive to maintain, had racy semantics,
and was too little used.

As of right now, git submit fails because it doesn't see
"mergeable":true in the JSON.

Remove the use of it in git-codereview.

Change-Id: I12c821b9dbc44183a689d510dd20104eab5a0043
Reviewed-on: https://go-review.googlesource.com/c/review/+/222937
Run-TryBot: Russ Cox &lt;rsc@golang.org&gt;
TryBot-Result: Gobot Gobot &lt;gobot@golang.org&gt;
Reviewed-by: Andrew Bonventre &lt;andybons@golang.org&gt;
</content>
</entry>
</feed>
