)]}'
{
  "commit": "1a07ae6bf58c0a6cf1f877bcb6816b3000bea144",
  "tree": "877e3b7beb7ccce440aa8d3d3aabdc257537a3a3",
  "parents": [
    "1313148ef665cc9adabb651710efe75b8d14009d"
  ],
  "author": {
    "name": "doujiang24",
    "email": "doujiang24@gmail.com",
    "time": "Fri Jan 21 01:43:20 2022 +0000"
  },
  "committer": {
    "name": "Hyang-Ah Hana Kim",
    "email": "hyangah@gmail.com",
    "time": "Fri Jan 21 13:34:07 2022 +0000"
  },
  "message": "cmd/viewcore: reset the flag values before executing subcommands\n\nafter executing a subcommand with --help flag one time,\nthe subcommand will always show the help usage even it doesn\u0027t\nhave the help flag,\nsince the help flag is always true after it\u0027s set to true once.\n\nas the following case, the `top` flag won\u0027t work after executing `histo --help` once.\n```\n(viewcore) histo --help\nprint histogram of heap memory use by Go type.\nIf N is specified, it will reports only the top N buckets\nbased on the total bytes.\n\nUsage:\n   histogram [flags]\n\nAliases:\n  histogram, histo\n\nFlags:\n  -h, --help      help for histogram\n      --top int   reports only top N entries if N\u003e0\n(viewcore) histo --top 10\nprint histogram of heap memory use by Go type.\nIf N is specified, it will reports only the top N buckets\nbased on the total bytes.\n\nUsage:\n   histogram [flags]\n\nAliases:\n  histogram, histo\n\nFlags:\n  -h, --help      help for histogram\n      --top int   reports only top N entries if N\u003e0\n```\n\nThe original `ResetFlags` just delete the flags of the `root` command.\nhttps://pkg.go.dev/github.com/spf13/cobra#Command.ResetFlags\nhttps://github.com/spf13/cobra/issues/1488\n\nChange-Id: Ib0c663846fe64512d29636c0d70afa1ba924828a\nGitHub-Last-Rev: 328b3b6ec9313a5df8991751bfef11d4c119e84d\nGitHub-Pull-Request: golang/debug#8\nReviewed-on: https://go-review.googlesource.com/c/debug/+/372374\nTrust: Heschi Kreinick \u003cheschi@google.com\u003e\nReviewed-by: Hyang-Ah Hana Kim \u003chyangah@gmail.com\u003e\nTrust: Hyang-Ah Hana Kim \u003chyangah@gmail.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "ce3c469c3cba79e6acad9091e147b2ad40abb246",
      "old_mode": 33188,
      "old_path": "cmd/viewcore/main.go",
      "new_id": "26e278502e7d606aec0c9f99d2b4415ce3907d3c",
      "new_mode": 33188,
      "new_path": "cmd/viewcore/main.go"
    },
    {
      "type": "modify",
      "old_id": "73cf21a83effbc9c0db94e0d78fae95d38141c91",
      "old_mode": 33188,
      "old_path": "go.mod",
      "new_id": "ff62e490e7176bb8361c123a3638985753dead69",
      "new_mode": 33188,
      "new_path": "go.mod"
    }
  ]
}
