{"thread":{"id":"52683","subject":"git subtree cache","startedAt":"2020-01-23T14:51:11Z","lastAt":"2020-01-23T14:51:11Z","messageCount":1,"participants":["Tomas Camin"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"390272","messageId":"CANKW80qZ_Fa-h5eQaVhstdyB2cOSTqZQyt9jGtfRuvLnwTCWmA@mail.gmail.com","threadId":"52683","inReplyTo":null,"subject":"git subtree cache","fromName":"Tomas Camin","fromEmail":"t.camin@gmail.com","sentAt":"2020-01-23T14:50:28Z","receivedAt":"2020-01-23T14:51:11Z","isPatch":false,"sender":{"key":"t.camin@gmail.com","avatar":null},"body":"Hi,\n\nI noticed an unexpected behaviour with the cache folder used by git\nsubtree split.\n\nIn the cache_setup function a cachedir folder is created and named\nafter the pid of the process, however I don't see that folder being\ndeleted anywhere in the script.\n\nAs is I'm seeing the number of cache files constantly growing as new\ncache folders are created when using split.\n\nIs this an expected behaviour?\n\nRegards,\nTomas\n\n```\ncache_setup () {\n   cachedir=\"$GIT_DIR/subtree-cache/$$\"\n   rm -rf \"$cachedir\" ||\n      die \"Can't delete old cachedir: $cachedir\"\n   mkdir -p \"$cachedir\" ||\n      die \"Can't create new cachedir: $cachedir\"\n   mkdir -p \"$cachedir/notree\" ||\n      die \"Can't create new cachedir: $cachedir/notree\"\n   debug \"Using cachedir: $cachedir\" >&2\n}\n```\n"}]}