]> Cypherpunks repositories - gostls13.git/commit
cmd/go: improve documentation on defaults for get
authorMarko Mudrinic <mudrinic.mare@gmail.com>
Thu, 15 Jun 2017 17:15:47 +0000 (19:15 +0200)
committerIan Lance Taylor <iant@golang.org>
Thu, 15 Jun 2017 21:20:46 +0000 (21:20 +0000)
commit6ce5067117268eff1c9ca6077371d7c8f4d749e3
treee119ecb71988312113d42e87760966d5730c05d5
parenta9fc249f5f5c2485847c63fef226067002408ce4
cmd/go: improve documentation on defaults for get

The existing docs states that, get looks for a branch or tag
that matches the locally installed version of Go.
First, this is only working for "go1", so it could be confusing.
Second, "If no such version exists it retrieves the most recent
version of the package". It's more the default branch, by git defaults,
rather than most recent version.

This should address the potential unclear parts.

Fixes #20320

Change-Id: Id7d727d88dc350c9902974b64fa28c3766f7e245
Reviewed-on: https://go-review.googlesource.com/45890
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/go/alldocs.go
src/cmd/go/internal/get/get.go