]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: clarify vcs suffix to repo mapping
authorSean Liao <sean@liao.dev>
Tue, 11 Feb 2025 16:30:22 +0000 (16:30 +0000)
committerGopher Robot <gobot@golang.org>
Wed, 12 Feb 2025 18:55:48 +0000 (10:55 -0800)
For #71635

Change-Id: I12ec2a810cfcaf2565b0d9c518b0921ec54e9f12
Reviewed-on: https://go-review.googlesource.com/c/go/+/648475
Reviewed-by: Michael Matloob <matloob@golang.org>
Auto-Submit: Sam Thanawalla <samthanawalla@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Sam Thanawalla <samthanawalla@google.com>
src/cmd/go/alldocs.go
src/cmd/go/internal/help/helpdoc.go

index fc85995373017d9d7695842c337ef848f0aeb681..6f0cb1b698102082d5233a9c0cbed062383b2856 100644 (file)
 //     import "example.org/user/foo.hg"
 //
 // denotes the root directory of the Mercurial repository at
-// example.org/user/foo or foo.hg, and
+// example.org/user/foo, and
 //
 //     import "example.org/repo.git/foo/bar"
 //
 // denotes the foo/bar directory of the Git repository at
-// example.org/repo or repo.git.
+// example.org/repo.
 //
 // When a version control system supports multiple protocols,
 // each is tried in turn when downloading. For example, a Git
index e96849521525d62ff47c6b8344d1a488d91639d0..4adabfbbd4b491c589928cbc4d015eb5e3ea9c53 100644 (file)
@@ -214,12 +214,12 @@ For example,
        import "example.org/user/foo.hg"
 
 denotes the root directory of the Mercurial repository at
-example.org/user/foo or foo.hg, and
+example.org/user/foo, and
 
        import "example.org/repo.git/foo/bar"
 
 denotes the foo/bar directory of the Git repository at
-example.org/repo or repo.git.
+example.org/repo.
 
 When a version control system supports multiple protocols,
 each is tried in turn when downloading. For example, a Git