<feed xmlns='http://www.w3.org/2005/Atom'>
<title>go-x-review/git-codereview/submit.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: frame sync as git codereview sync</title>
<updated>2025-07-09T15:35:44Z</updated>
<author>
<name>Matt T. Proud</name>
<email>matt.proud@gmail.com</email>
</author>
<published>2025-07-04T18:03:02Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-review/commit/?id=48aa97b42827239f9fd02d1b5ad75adc200c7a72'/>
<id>urn:sha1:48aa97b42827239f9fd02d1b5ad75adc200c7a72</id>
<content type='text'>
The codereview binary referred to the sync subcommand as merely "git
sync" in a number of places in user surfaces.  This was wrong and
misleading, so the code now refers to it with the codereview parent
subcommand in the name (i.e., a "git codereview sync").

Change-Id: Icf3f96a8c76b57319bc3101b3e9fd0cbd8cecea9
Reviewed-on: https://go-review.googlesource.com/c/review/+/685855
Auto-Submit: Sean Liao &lt;sean@liao.dev&gt;
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Reviewed-by: Carlos Amedee &lt;carlos@golang.org&gt;
Reviewed-by: Sean Liao &lt;sean@liao.dev&gt;
Reviewed-by: David Chase &lt;drchase@google.com&gt;
</content>
</entry>
<entry>
<title>git-codereview: explicitly include the codereview subcommand in suggested commands</title>
<updated>2025-06-17T17:40:36Z</updated>
<author>
<name>Adam Bender</name>
<email>abender@gmail.com</email>
</author>
<published>2025-06-12T02:12:34Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-review/commit/?id=c4af2b031e13e282462ea8ae4311bfabe115ae9d'/>
<id>urn:sha1:c4af2b031e13e282462ea8ae4311bfabe115ae9d</id>
<content type='text'>
If a user does not have the recommended aliases in their .gitconfig, the suggested
command will not work. Several suggestions have the codereview subcommand already;
this change updates all suggestions to include it.

Change-Id: I3613f24172c2d90a7038f263cad93cbdcddbbbca
Reviewed-on: https://go-review.googlesource.com/c/review/+/681176
LUCI-TryBot-Result: Go LUCI &lt;golang-scoped@luci-project-accounts.iam.gserviceaccount.com&gt;
Reviewed-by: Junyang Shao &lt;shaojunyang@google.com&gt;
Reviewed-by: Sean Liao &lt;sean@liao.dev&gt;
Reviewed-by: Cherry Mui &lt;cherryyz@google.com&gt;
Auto-Submit: Sean Liao &lt;sean@liao.dev&gt;
</content>
</entry>
<entry>
<title>git-codereview: add reword command</title>
<updated>2021-01-13T14:40:05Z</updated>
<author>
<name>Russ Cox</name>
<email>rsc@golang.org</email>
</author>
<published>2021-01-07T17:26:06Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-review/commit/?id=fdc5e6a4e6b93c6381d20cf1dfbfaa49f420a43d'/>
<id>urn:sha1:fdc5e6a4e6b93c6381d20cf1dfbfaa49f420a43d</id>
<content type='text'>
Quoting the new docs:

The reword command edits pending commit messages.

    git codereview reword [commit...]

Reword opens the editor on the commit message for each named commit in turn.
When all the editing is finished, it applies the changes to the pending
commits. If no commit is listed, reword applies to the most recent pending
commit.

Reword is similar in effect to running “git codereview rebase-work” and
changing the script action for the named commits to “reword”, or (with no
arguments) to “git commit --amend”, but it only affects the commit messages,
not the state of the git staged index, nor any checked-out files. This more
careful implementation makes it safe to use when there are local changes or,
for example, when tests are running that would be broken by temporary
changes to the checked-out tree, as would happen during “git codereview
rebase-work”.

Change-Id: I38ac939b8530bf237c6cafb911f2b17d22eaca60
Reviewed-on: https://go-review.googlesource.com/c/review/+/279718
Trust: Russ Cox &lt;rsc@golang.org&gt;
Reviewed-by: Matthew Dempsky &lt;mdempsky@google.com&gt;
</content>
</entry>
<entry>
<title>git-codereview: add a few more tests</title>
<updated>2021-01-07T18:26:42Z</updated>
<author>
<name>Russ Cox</name>
<email>rsc@golang.org</email>
</author>
<published>2021-01-07T17:26:06Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-review/commit/?id=3f3690dc9cf1f7c0ddca72d1c5313be4022ece58'/>
<id>urn:sha1:3f3690dc9cf1f7c0ddca72d1c5313be4022ece58</id>
<content type='text'>
Change-Id: I17ad065e8b4c1eb00cdd2f17af82be76bae4fc09
Reviewed-on: https://go-review.googlesource.com/c/review/+/279717
Trust: Russ Cox &lt;rsc@golang.org&gt;
Reviewed-by: Matthew Dempsky &lt;mdempsky@google.com&gt;
</content>
</entry>
<entry>
<title>git-codereview: clean up usage message, docs</title>
<updated>2020-12-22T22:16:19Z</updated>
<author>
<name>Russ Cox</name>
<email>rsc@golang.org</email>
</author>
<published>2020-09-14T19:11:02Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-review/commit/?id=9593f86427dedbe2eda472886bd2a4f8c965abf5'/>
<id>urn:sha1:9593f86427dedbe2eda472886bd2a4f8c965abf5</id>
<content type='text'>
Change-Id: I634a9d47401c1000bcb38e9dd7e84296a3de00e6
Reviewed-on: https://go-review.googlesource.com/c/review/+/254746
Trust: Russ Cox &lt;rsc@golang.org&gt;
Trust: Dmitri Shuralyov &lt;dmitshur@golang.org&gt;
Run-TryBot: Russ Cox &lt;rsc@golang.org&gt;
TryBot-Result: Go Bot &lt;gobot@golang.org&gt;
Reviewed-by: Dmitri Shuralyov &lt;dmitshur@golang.org&gt;
</content>
</entry>
<entry>
<title>git-codereview: add mail -trust to set Trust+1 vote</title>
<updated>2020-09-11T20:38:40Z</updated>
<author>
<name>Russ Cox</name>
<email>rsc@golang.org</email>
</author>
<published>2020-09-11T15:05:28Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-review/commit/?id=0edcedeff807fefacf0249cdc78b5db4d956f514'/>
<id>urn:sha1:0edcedeff807fefacf0249cdc78b5db4d956f514</id>
<content type='text'>
The expectation is that approvers will change their .gitconfig
to define mail as codereview mail -trust.

For golang/go#40699.

Change-Id: I2a1040bf3f1c7248e9c361e1f2a83c17870b1df5
Reviewed-on: https://go-review.googlesource.com/c/review/+/254421
Run-TryBot: Russ Cox &lt;rsc@golang.org&gt;
Reviewed-by: Andrew Bonventre &lt;andybons@golang.org&gt;
TryBot-Result: Gobot Gobot &lt;gobot@golang.org&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>
<entry>
<title>git-codereview: add support for DΟ NΟT MAIL</title>
<updated>2017-11-16T01:36:40Z</updated>
<author>
<name>Russ Cox</name>
<email>rsc@golang.org</email>
</author>
<published>2017-11-10T03:27:37Z</published>
<link rel='alternate' type='text/html' href='http://git.kilabit.info/go-x-review/commit/?id=0d52c016f0bb80623e0ce00bf4e92981bacf862e'/>
<id>urn:sha1:0d52c016f0bb80623e0ce00bf4e92981bacf862e</id>
<content type='text'>
Also create a local DΟ NΟT SUBMIT check,
although the Gerrit server is also taking care of that.

While we're here, make fixup! and squash! commits
non-mailable as well.

(In the all caps text above the big Os are really Omicrons.
Otherwise the CL would not be mailable or submittable.)

Change-Id: Id1a9806b0d395d1a0bfc50ed7d7d22c64a48a2f1
Reviewed-on: https://go-review.googlesource.com/76877
Run-TryBot: Russ Cox &lt;rsc@golang.org&gt;
Reviewed-by: Austin Clements &lt;austin@google.com&gt;
TryBot-Result: Gobot Gobot &lt;gobot@golang.org&gt;
</content>
</entry>
</feed>
