)]}'
{
  "commit": "c86327979f1362cf742e1401a95fdec259636d37",
  "tree": "0c3641b2502786a7db77f7e834759e00cfde7e16",
  "parents": [
    "ec7f88eec8f52a2254b82bcb73aa489028ea3b39"
  ],
  "author": {
    "name": "Thomas Wolf",
    "email": "thomas.wolf@paranor.ch",
    "time": "Thu Dec 14 13:24:00 2017 +0100"
  },
  "committer": {
    "name": "Matthias Sohn",
    "email": "matthias.sohn@sap.com",
    "time": "Fri Dec 15 14:14:03 2017 +0100"
  },
  "message": "Write packed-refs directly when cloning\n\nWhen we are cloning we have no refs at all yet, and there cannot\n(or at least should not) be any other thread doing something with\nrefs yet.\n\nLocking loose refs is thus not needed, since there are no loose\nrefs yet and nothing should be trying to create them concurrently.\n\nLet\u0027s skip the whole loose ref locking when we are cloning a repository.\nAs a result, JGit will write the refs directly to the packed-refs\nfile, and will not create the refs/remotes/ directories nor the\nlock files underneath when cloning and packed refs are used. Since\nno lock files are created, any problems on case-insensitive file\nsystems with tag or branch names that differ only in case are avoided\nduring cloning.\n\nDetect if we are cloning based on the following heuristics:\n* HEAD is a dangling symref\n* There is no loose ref\n* There is no packed-refs file\n\nNote, however, that there may still be problems with such tag or\nbranch names later on. This is primarily a five-minutes-past-twelve\nstop-gap measure to resolve the referenced bug, which affects the\nOxygen.2 release.\n\nBug: 528497\nChange-Id: I57860c29c210568165276a123b855e462b6a107a\nSigned-off-by: Thomas Wolf \u003cthomas.wolf@paranor.ch\u003e\nSigned-off-by: Matthias Sohn \u003cmatthias.sohn@sap.com\u003e",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "b328eb83e08c30302c25def5a87b83a9b1651005",
      "old_mode": 33188,
      "old_path": "org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackedBatchRefUpdate.java",
      "new_id": "c1f5476496cbc5686dcdb64e0b56aba16e624047",
      "new_mode": 33188,
      "new_path": "org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/PackedBatchRefUpdate.java"
    },
    {
      "type": "modify",
      "old_id": "a44acacd12f752ee4c1e760d93181d5965e6c5b6",
      "old_mode": 33188,
      "old_path": "org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/RefDirectory.java",
      "new_id": "bd39e65657572e9b6b9f7fc0ee71631d449f4804",
      "new_mode": 33188,
      "new_path": "org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/RefDirectory.java"
    }
  ]
}
