git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* git subtree cache
@ 2020-01-23 14:50 Tomas Camin
  0 siblings, 0 replies; only message in thread
From: Tomas Camin @ 2020-01-23 14:50 UTC (permalink / raw)
  To: git

Hi,

I noticed an unexpected behaviour with the cache folder used by git
subtree split.

In the cache_setup function a cachedir folder is created and named
after the pid of the process, however I don't see that folder being
deleted anywhere in the script.

As is I'm seeing the number of cache files constantly growing as new
cache folders are created when using split.

Is this an expected behaviour?

Regards,
Tomas

```
cache_setup () {
   cachedir="$GIT_DIR/subtree-cache/$$"
   rm -rf "$cachedir" ||
      die "Can't delete old cachedir: $cachedir"
   mkdir -p "$cachedir" ||
      die "Can't create new cachedir: $cachedir"
   mkdir -p "$cachedir/notree" ||
      die "Can't create new cachedir: $cachedir/notree"
   debug "Using cachedir: $cachedir" >&2
}
```

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-01-23 14:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-01-23 14:50 git subtree cache Tomas Camin

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).