)]}'
{
  "commit": "5619c0edbec91139df79dd0d0d8d4967f4646a08",
  "tree": "1033ca39322d8e417839cc12055cdaea1ec6eb4b",
  "parents": [
    "64dc6f681062822d3823f74c615e3f6c1f79a30c"
  ],
  "author": {
    "name": "Roland Schilter",
    "email": "roli@schilter.me",
    "time": "Fri Aug 05 09:18:19 2016 +0200"
  },
  "committer": {
    "name": "Bjørn Erik Pedersen",
    "email": "bjorn.erik.pedersen@gmail.com",
    "time": "Fri Aug 05 09:18:19 2016 +0200"
  },
  "message": "Reset cache on config name change\n\nI stumbled over this when trying to merge multiple configs.\r\n\r\n```\r\nviper.SetConfigName(\"default\")\r\nerr :\u003d viper.MergeInConfig()\r\n```\r\nwhich caches file path resolvemenet in `v.configFile`\r\n\r\nand then\r\n```\r\nviper.SetConfigName(\"prod\")\r\nerr :\u003d viper.MergeInConfig()\r\n```\r\n\r\nwhich reuses `v.configFile` without updating it accordingly to the new name.\r\n\r\nSee https://github.com/spf13/viper/blob/c1ccc378a054ea8d4e38d8c67f6938d4760b53dd/viper.go#L1240",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "e5a360a2baae32745fde4ca2a3d4ac8a1386e33f",
      "old_mode": 33188,
      "old_path": "viper.go",
      "new_id": "d8003958421ff03948daa516a14fd7f6c823246c",
      "new_mode": 33188,
      "new_path": "viper.go"
    },
    {
      "type": "modify",
      "old_id": "aa9d7fef7af26067726269cc66e99d1ffaeccc43",
      "old_mode": 33188,
      "old_path": "viper_test.go",
      "new_id": "0c0c7e59bd4179f1b598fe1a6a00a5b048eb9283",
      "new_mode": 33188,
      "new_path": "viper_test.go"
    }
  ]
}
