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

Issue 4675047: code review 4675047: godoc: ignore directories that begin with '.' (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 8 months ago by adg
Modified:
13 years, 8 months ago
Reviewers:
rsc
CC:
golang-dev, r
Visibility:
Public.

Description

godoc: ignore directories that begin with '.' Fixes issue 2017.

Patch Set 1 #

Total comments: 1

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

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

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

Messages

Total messages: 8
adg
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 8 months ago (2011-07-05 06:49:16 UTC) #1
r
http://codereview.appspot.com/4675047/diff/1/src/cmd/godoc/dirtrees.go File src/cmd/godoc/dirtrees.go (right): http://codereview.appspot.com/4675047/diff/1/src/cmd/godoc/dirtrees.go#newcode47 src/cmd/godoc/dirtrees.go:47: len(name) > 0 && name[0] != '_' && name[0] ...
13 years, 8 months ago (2011-07-05 06:52:24 UTC) #2
adg
Hello golang-dev@googlegroups.com, r@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
13 years, 8 months ago (2011-07-05 06:55:10 UTC) #3
adg
On 5 July 2011 16:52, <r@golang.org> wrote: > http://codereview.appspot.com/4675047/diff/1/src/cmd/godoc/dirtrees.go#newcode47 > src/cmd/godoc/dirtrees.go:47: len(name) > 0 && ...
13 years, 8 months ago (2011-07-05 06:55:32 UTC) #4
r
LGTM
13 years, 8 months ago (2011-07-05 06:57:41 UTC) #5
adg
*** Submitted as http://code.google.com/p/go/source/detail?r=c2e791394671 *** godoc: ignore directories that begin with '.' Fixes issue 2017. ...
13 years, 8 months ago (2011-07-05 07:00:24 UTC) #6
rsc
removing the use of strings.HasPrefix seems gratuitous and makes the logic harder to follow. hard ...
13 years, 8 months ago (2011-07-11 06:34:15 UTC) #7
adg
13 years, 8 months ago (2011-07-11 06:37:12 UTC) #8
On 11 July 2011 16:34, Russ Cox <rsc@golang.org> wrote:
> removing the use of strings.HasPrefix seems gratuitous
> and makes the logic harder to follow.  hard to believe
> the performance matters here.

Probably, but isPkgDir didn't use HasPrefix, so I just made isGoFile
do the same.

Andrew
Sign in to reply to this message.

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