]> git.ipfire.org Git - thirdparty/git.git/blobdiff - cache.h
path.c: add xdg_cache_home
[thirdparty/git.git] / cache.h
diff --git a/cache.h b/cache.h
index 8c0e6442076eb91571dc0c5cf55db478ab47d2ad..5db29a945381a1b2347fa675ca6e94d818855e2d 100644 (file)
--- a/cache.h
+++ b/cache.h
@@ -1169,6 +1169,13 @@ extern int is_ntfs_dotgit(const char *name);
  */
 extern char *xdg_config_home(const char *filename);
 
+/**
+ * Return a newly allocated string with the evaluation of
+ * "$XDG_CACHE_HOME/git/$filename" if $XDG_CACHE_HOME is non-empty, otherwise
+ * "$HOME/.cache/git/$filename". Return NULL upon error.
+ */
+extern char *xdg_cache_home(const char *filename);
+
 /* object replacement */
 #define LOOKUP_REPLACE_OBJECT 1
 #define LOOKUP_UNKNOWN_OBJECT 2