Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

package plumbing documentation improvements #248

Merged
merged 5 commits into from
Feb 7, 2017
Merged

package plumbing documentation improvements #248

merged 5 commits into from
Feb 7, 2017

Conversation

mcuadros
Copy link
Contributor

@mcuadros mcuadros commented Feb 1, 2017

@codecov-io
Copy link

codecov-io commented Feb 1, 2017

Codecov Report

Merging #248 into master will not impact coverage.

@@           Coverage Diff           @@
##           master     #248   +/-   ##
=======================================
  Coverage   76.91%   76.91%           
=======================================
  Files         108      108           
  Lines        7347     7347           
=======================================
  Hits         5651     5651           
  Misses       1106     1106           
  Partials      590      590
Impacted Files Coverage Δ
plumbing/format/pktline/encoder.go 86.36% <ø> (ø)
plumbing/format/idxfile/idxfile.go 89.47% <ø> (ø)
plumbing/format/idxfile/encoder.go 75.38% <ø> (ø)
plumbing/format/config/option.go 100% <ø> (ø)
plumbing/protocol/packp/capability/capability.go 100% <ø> (ø)
plumbing/transport/ssh/common.go 0% <ø> (ø)
plumbing/transport/git/common.go 70% <ø> (ø)
plumbing/transport/http/common.go 69.23% <ø> (ø)
plumbing/transport/file/client.go 100% <ø> (ø)
plumbing/transport/client/client.go 100% <ø> (ø)
... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d0cf207...76b3471. Read the comment docs.

type Includes []*Include

// A reference to an included configuration.
// Include is reference to an included config file
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Include is a reference

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

End the comment with a full stop.

type Include struct {
Path string
Config *Config
}

// Comment string with out the prefix '#' or ';'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/with out/without/

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

End the comment with a full stop.

type Comment string

const (
// NoSubsection token used to avoid provide a section to the Config.Section
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alternative wording: NoSubsection token is passed to Config.Section and Config.SetSection to represent the absence of a section.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

End the comment with a full stop.

@@ -5,26 +5,32 @@ func New() *Config {
return &Config{}
}

// Config contains all the sections, comments and includes from a config file
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

End the comment with a full stop.

type Config struct {
Comment *Comment
Sections Sections
Includes Includes
}

// Includes is a list of Includes in a config file
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

End the comment with a full stop.

@@ -1,3 +1,5 @@
// Package client contains helper function to deal with the different client
// protocols
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

End sentence with a full stop.

@@ -1,3 +1,4 @@
// Package file implements the file transport protocol
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

End sentence with a full stop.

@@ -1,3 +1,4 @@
// Package git implements the git transport protocol
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

End sentence with a full stop.

@@ -1,4 +1,4 @@
// Package http implements a HTTP client for go-git.
// Package http implements the HTTP transport protocol
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

End sentence with a full stop.

@@ -1,3 +1,4 @@
// Package file implements the SSH transport protocol
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

End sentence with a full stop.

@@ -5,32 +5,32 @@ func New() *Config {
return &Config{}
}

// Config contains all the sections, comments and includes from a config file
// Config contains all the sections, comments and includes from a config file,
Copy link
Contributor

@alcortesm alcortesm Feb 6, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/,$/./

@@ -81,7 +81,7 @@ func (c *Config) RemoveSection(name string) *Config {
return c
}

// RemoveSubsection remove a subsection from a config file
// RemoveSubsection remove a subsection from a config file.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/remove/removes/

@@ -94,7 +94,7 @@ type TreeEntry struct {
}

// ResolveUndo is used when a conflict is resolved (e.g. with "git add path"),
// these higher stage entries will be removed and a stage-0 entry with proper
// these higher stage entries are removed and a stage-0 entry with proper
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

End the paragraph with a full stop.

I still don't understand anything in this paragraph, can you re-write this paragraph with your own words: explaining what are you planning to do with it in simple words, what is a stage, what is a stage-0 entry, what undo extension is it referring to, etc.

@@ -1,5 +1,5 @@
// Package revlist implementation to walk the objects referenced by a commit
// history. Roughly equivalent to git-rev-list command.
// Package revlist is a implementation to walk the objects referenced by a
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/ a / an /

The sentence still doesn't make sense, revlist is a package, not an implementation (an implementation of what?).

Consider this other sentence instead: Package revlist provides support to access the ancestors of commits, in a similar way as the git-rev-list command.

@ajnavarro ajnavarro changed the title package pumbling documentation improvements package plumbing documentation improvements Feb 7, 2017
@mcuadros mcuadros merged commit 431af32 into src-d:master Feb 7, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants