)]}'
{
  "commit": "bc303718cc288b54233b204ce88223a16fb38487",
  "tree": "53738bfb5b1cad2c27e17f1a78819ddad9ace5b4",
  "parents": [
    "27c0be9a3f3bb32781aadd1caec14c1e1846a5da"
  ],
  "author": {
    "name": "brian m. carlson",
    "email": "sandals@crustytoothpaste.net",
    "time": "Thu Jun 12 01:12:20 2025 +0000"
  },
  "committer": {
    "name": "Junio C Hamano",
    "email": "gitster@pobox.com",
    "time": "Thu Jun 12 13:32:18 2025 -0700"
  },
  "message": "builtin/stash: provide a way to import stashes from a ref\n\nNow that we have a way to export stashes to a ref, let\u0027s provide a way\nto import them from such a ref back to the stash.  This works much the\nway the export code does, except that we strip off the first parent\nchain commit and then store each resulting commit back to the stash.\n\nWe don\u0027t clear the stash first and instead add the specified stashes to\nthe top of the stash.  This is because users may want to export just a\nfew stashes, such as to share a small amount of work in progress with a\ncolleague, and it would be undesirable for the receiving user to lose\nall of their data.  For users who do want to replace the stash, it\u0027s\neasy to do to: simply run \"git stash clear\" first.\n\nWe specifically rely on the fact that we\u0027ll produce identical stash\ncommits on both sides in our tests.  This provides a cheap,\nstraightforward check for our tests and also makes it easy for users to\nsee if they already have the same data in both repositories.\n\nSigned-off-by: Phillip Wood \u003cphillip.wood@dunelm.org.uk\u003e\nSigned-off-by: brian m. carlson \u003csandals@crustytoothpaste.net\u003e\nSigned-off-by: Junio C Hamano \u003cgitster@pobox.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "0aef0a5b866668f06ac3f1df0481e4557f9bf59d",
      "old_mode": 33188,
      "old_path": "Documentation/git-stash.adoc",
      "new_id": "e5e6c9d37f6352512bba14b8c239a1ce8f320559",
      "new_mode": 33188,
      "new_path": "Documentation/git-stash.adoc"
    },
    {
      "type": "modify",
      "old_id": "192b0d9969b0d5841c195466da26a969cd62f569",
      "old_mode": 33188,
      "old_path": "builtin/stash.c",
      "new_id": "0e77fa94ee47673c7d69163f42e36c7f7cb574e1",
      "new_mode": 33188,
      "new_path": "builtin/stash.c"
    },
    {
      "type": "modify",
      "old_id": "74666ff3e4b2b8fa5aa9651e85dc7c82621bd304",
      "old_mode": 33261,
      "old_path": "t/t3903-stash.sh",
      "new_id": "12d30a98659a22d12fe895238b024621693cf316",
      "new_mode": 33261,
      "new_path": "t/t3903-stash.sh"
    }
  ]
}
