Devin Lehmacher <lehmacdj@xxxxxxxxx> writes: > We already have xdg_config_home to format paths relative to > XDG_CONFIG_HOME. Let's provide a similar function xdg_cache_home to do > the same for paths relative to XDG_CACHE_HOME. Nicely explained. > +/** > + * Return a newly allocated string with the evaluation of > + * "$XDG_CACHE_HOME/git/$filename" if $XDG_CONFIG_HOME is non-empty, otherwise > + * "$HOME/.config/git/$filename". Return NULL upon error. s|CONFIG|CACHE| and s|.config|.cache| are needed, methinks. Will fix while queuing, so no need to resend only to fix this typo.