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

Issue 5699072: code review 5699072: godoc: don't show directories w/o packages in flat dir mode (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years ago by gri
Modified:
13 years ago
Reviewers:
CC:
golang-dev, bradfitz, Sameer Ajmani
Visibility:
Public.

Description

godoc: don't show directories w/o packages in flat dir mode The main change is simple: Both the Directory and DirEntry struct have an extra field 'HasPkg' indicating whether the directory contains any package files. The remaining changes are more comments and adjustments to the template files. Fixes issue 3121.

Patch Set 1 #

Patch Set 2 : diff -r 81084c0ed4e8 https://code.google.com/p/go #

Patch Set 3 : diff -r 81084c0ed4e8 https://code.google.com/p/go #

Total comments: 12

Patch Set 4 : diff -r f3f83fcdabfb https://code.google.com/p/go #

Patch Set 5 : diff -r f3f83fcdabfb https://code.google.com/p/go #

Patch Set 6 : diff -r f3f83fcdabfb https://code.google.com/p/go #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -24 lines) Patch
M lib/godoc/package.html View 1 1 chunk +17 lines, -11 lines 0 comments Download
M lib/godoc/package.txt View 1 1 chunk +2 lines, -2 lines 0 comments Download
M src/cmd/godoc/dirtrees.go View 1 2 3 5 chunks +25 lines, -11 lines 0 comments Download

Messages

Total messages: 7
gri
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go
13 years ago (2012-02-24 22:27:17 UTC) #1
bradfitz
http://codereview.appspot.com/5699072/diff/3001/src/cmd/godoc/dirtrees.go File src/cmd/godoc/dirtrees.go (right): http://codereview.appspot.com/5699072/diff/3001/src/cmd/godoc/dirtrees.go#newcode29 src/cmd/godoc/dirtrees.go:29: HasPkg bool // true if the directory contains at ...
13 years ago (2012-02-26 08:22:53 UTC) #2
Sameer Ajmani
http://codereview.appspot.com/5699072/diff/3001/lib/godoc/package.txt File lib/godoc/package.txt (right): http://codereview.appspot.com/5699072/diff/3001/lib/godoc/package.txt#newcode80 lib/godoc/package.txt:80: {{.Path}}{{end}}{{end}} It's hard to see what each {{end}} matches ...
13 years ago (2012-02-27 01:44:15 UTC) #3
gri
http://codereview.appspot.com/5699072/diff/3001/lib/godoc/package.txt File lib/godoc/package.txt (right): http://codereview.appspot.com/5699072/diff/3001/lib/godoc/package.txt#newcode80 lib/godoc/package.txt:80: {{.Path}}{{end}}{{end}} On 2012/02/27 01:44:15, Sameer Ajmani wrote: > It's ...
13 years ago (2012-02-27 18:49:40 UTC) #4
gri
Hello golang-dev@googlegroups.com, bradfitz@golang.org, sameer@golang.org (cc: golang-dev@googlegroups.com), Please take another look.
13 years ago (2012-02-27 18:50:16 UTC) #5
bradfitz
LGTM On Mon, Feb 27, 2012 at 10:50 AM, <gri@golang.org> wrote: > Hello golang-dev@googlegroups.com, bradfitz@golang.org, ...
13 years ago (2012-02-27 19:11:18 UTC) #6
gri
13 years ago (2012-02-27 19:18:03 UTC) #7
*** Submitted as http://code.google.com/p/go/source/detail?r=e62a4f90e86a ***

godoc: don't show directories w/o packages in flat dir mode

The main change is simple: Both the Directory and DirEntry
struct have an extra field 'HasPkg' indicating whether the
directory contains any package files. The remaining changes
are more comments and adjustments to the template files.

Fixes issue 3121.

R=golang-dev, bradfitz, sameer
CC=golang-dev
http://codereview.appspot.com/5699072
Sign in to reply to this message.

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