Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(8252)

Issue 4430054: code review 4430054: gofmt: add -diff

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years ago by crawshaw2
Modified:
13 years ago
Reviewers:
gri, rsc
CC:
rsc, gri, bradfitz, r2, adg, peterGo, r, brainman, golang-dev
Visibility:
Public.

Description

gofmt: add -diff Some code duplication with gofix.

Patch Set 1 #

Patch Set 2 : diff -r e3c23620297a https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r e3c23620297a https://go.googlecode.com/hg/ #

Total comments: 4

Patch Set 4 : diff -r 457779d45121 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -1 line) Patch
M src/cmd/gofmt/gofmt.go View 1 2 3 4 chunks +45 lines, -1 line 0 comments Download

Messages

Total messages: 18
crawshaw2
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years ago (2011-04-17 21:12:43 UTC) #1
rsc
LGTM I have been meaning to add this to gofmt since writing the code for ...
13 years ago (2011-04-18 18:04:44 UTC) #2
bradfitz
Which systems have a diff command available, at least by default? Would be nice at ...
13 years ago (2011-04-18 18:06:22 UTC) #3
r2
On Apr 18, 2011, at 11:06 AM, Brad Fitzpatrick wrote: > Which systems have a ...
13 years ago (2011-04-18 18:20:18 UTC) #4
gri
LGTM. Please address the suggestions below. Also, have you filled out the CLA form? ( ...
13 years ago (2011-04-18 23:25:32 UTC) #5
rsc
> The style in this file is to have two empty lines between functions. > ...
13 years ago (2011-04-18 23:42:31 UTC) #6
r2
On Apr 18, 2011, at 4:42 PM, Russ Cox wrote: >> The style in this ...
13 years ago (2011-04-18 23:45:45 UTC) #7
adg
On 19 April 2011 09:45, Rob 'Commander' Pike <r@google.com> wrote: > > On Apr 18, ...
13 years ago (2011-04-18 23:52:40 UTC) #8
crawshaw2
On 2011/04/18 23:25:32, gri wrote: > Also, have you filled out the CLA form? ( ...
13 years ago (2011-04-19 05:19:44 UTC) #9
crawshaw2
http://codereview.appspot.com/4430054/diff/4001/src/cmd/gofmt/gofmt.go File src/cmd/gofmt/gofmt.go (right): http://codereview.appspot.com/4430054/diff/4001/src/cmd/gofmt/gofmt.go#newcode32 src/cmd/gofmt/gofmt.go:32: doDiff = flag.Bool("diff", false, "display diffs instead of rewriting ...
13 years ago (2011-04-19 05:20:07 UTC) #10
peterGo
Brad, On Apr 18, 2:06 pm, Brad Fitzpatrick <bradf...@golang.org> wrote: > Which systems have a ...
13 years ago (2011-04-19 12:50:09 UTC) #11
rsc
>> Also, have you filled out the CLA form? ( >> http://code.google.com/legal/individual-cla-v1.0.html ) > > ...
13 years ago (2011-04-19 13:23:24 UTC) #12
peterGo
Not surprisingly, even on a Windows machine with diff, the CL fails. Exception: STATUS_ACCESS_VIOLATION at ...
13 years ago (2011-04-19 17:24:50 UTC) #13
r
Please let's not check this in until we have the Windows issue resolved.
13 years ago (2011-04-19 17:36:08 UTC) #14
brainman
On 2011/04/19 17:24:50, peterGo wrote: > Not surprisingly, even on a Windows machine with diff, ...
13 years ago (2011-04-20 01:30:33 UTC) #15
brainman
On 2011/04/19 17:36:08, r wrote: > Please let's not check this in until we have ...
13 years ago (2011-04-20 01:37:22 UTC) #16
gri
I am going to submit this now. It sounds like the Windows problem may be ...
13 years ago (2011-04-20 16:52:32 UTC) #17
gri
13 years ago (2011-04-20 17:08:04 UTC) #18
*** Submitted as http://code.google.com/p/go/source/detail?r=574f12a77eb6 ***

gofmt: add -diff

Some code duplication with gofix.

R=rsc, gri, bradfitzgo, r2, adg, peterGo, r, brainman
CC=golang-dev
http://codereview.appspot.com/4430054

Committer: Robert Griesemer <gri@golang.org>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b