aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvince <vincetiu8@gmail.com>2020-07-26 15:55:25 +0800
committerMichael Muré <batolettre@gmail.com>2020-07-28 14:30:07 +0200
commit6e315ea131553d42768e678d5f86445dd3c54aa4 (patch)
tree3c7c55d17380af69b38f4e41afc5aeefdc785f6b
parent4e5f377d75824e31a058313cad2d2e478f348c28 (diff)
downloadgit-bug-6e315ea131553d42768e678d5f86445dd3c54aa4.tar.gz
Update docs
-rw-r--r--cache/repo_cache_bug.go2
-rw-r--r--commands/rm.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/cache/repo_cache_bug.go b/cache/repo_cache_bug.go
index 34e2a144..bcbfcea3 100644
--- a/cache/repo_cache_bug.go
+++ b/cache/repo_cache_bug.go
@@ -360,7 +360,7 @@ func (c *RepoCache) NewBugRaw(author *IdentityCache, unixTime int64, title strin
return cached, op, nil
}
-// RemoveBug removes a bug from the cache and repo
+// RemoveBug removes a bug from the cache and repo given a bug id prefix
func (c *RepoCache) RemoveBug(prefix string) error {
b, err := c.ResolveBugPrefix(prefix)
diff --git a/commands/rm.go b/commands/rm.go
index 90a79539..09f6a6cc 100644
--- a/commands/rm.go
+++ b/commands/rm.go
@@ -12,7 +12,7 @@ func newRmCommand() *cobra.Command {
cmd := &cobra.Command{
Use: "rm <id>",
Short: "Remove an existing bug.",
- Long: "Remove an existing bug in the local repository. If the bug was imported from a bridge, specify the remote name to remove it from. Note removing bugs that were imported from bridges will not remove the bug remote, and will only remove the local copy of the bug.",
+ Long: "Remove an existing bug in the local repository. Note removing bugs that were imported from bridges will not remove the bug on the remote, and will only remove the local copy of the bug.",
PreRunE: loadBackendEnsureUser(env),
PostRunE: closeBackend(env),
RunE: func(cmd *cobra.Command, args []string) error {