@@ -338,31 +338,31 @@ will create or amend a single commit in the branch.
338
338
$ git checkout -b mybranch
339
339
$ [edit files...]
340
340
$ git add [files...]
341
- $ git codereview change # create commit in the branch
341
+ $ git codereview change -s # create commit in the branch
342
342
$ [edit again...]
343
343
$ git add [files...]
344
- $ git codereview change # amend the existing commit with new changes
344
+ $ git codereview change -s # amend the existing commit with new changes
345
345
$ [etc.]
346
346
```
347
347
348
348
- ** Step 3:** Test your changes, re-running ` go test ` .
349
349
```
350
- $ go test ./... # recompile and test
350
+ $ go test ./... # recompile and test
351
351
```
352
352
353
353
- ** Step 4:** Send the changes for review to Gerrit using ` git `
354
354
` codereview ` ` mail ` (which doesn't use e-mail, despite the name).
355
355
```
356
- $ git codereview mail # send changes to Gerrit
356
+ $ git codereview mail # send changes to Gerrit
357
357
```
358
358
359
359
- ** Step 5:** After a review, apply changes to the same single commit
360
360
and mail them to Gerrit again:
361
361
```
362
362
$ [edit files...]
363
363
$ git add [files...]
364
- $ git codereview change # update same commit
365
- $ git codereview mail # send to Gerrit again
364
+ $ git codereview change -s # update same commit
365
+ $ git codereview mail # send to Gerrit again
366
366
```
367
367
368
368
The rest of this section describes these steps in more detail.
@@ -402,11 +402,11 @@ $ [edit files...]
402
402
$ git add [files...]
403
403
```
404
404
405
- To commit changes, instead of ` git commit ` , use ` git codereview change ` .
405
+ To commit changes, instead of ` git commit -s ` , use ` git codereview change -s ` .
406
406
407
407
408
408
```
409
- $ git codereview change
409
+ $ git codereview change -s
410
410
(open $EDITOR)
411
411
```
412
412
@@ -497,9 +497,9 @@ area, and then amend the commit with
497
497
498
498
499
499
```
500
- $ git codereview change # amend current commit
500
+ $ git codereview change -s # amend current commit
501
501
(open $EDITOR)
502
- $ git codereview mail # send new changes to Gerrit
502
+ $ git codereview mail # send new changes to Gerrit
503
503
```
504
504
505
505
If you don't need to change the commit description, just save and exit from the editor.
0 commit comments