diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-09-20 15:20:40 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-09-20 15:20:40 -0700 |
commit | ed8794ef7ae9f345ab88c6f1ee728e06fc7b8ce4 (patch) | |
tree | 6af09cfc93255ad7c48f2dedc06075e4fc2002b8 /cache.h | |
parent | 76f5fdc2032d639c9a61ce7f49533a53884f05f6 (diff) | |
parent | b681b191f923267aab80ae7f7ab2f85a692e8833 (diff) |
Merge branch 'lh/systemd-timers'
"git maintenance" scheduler learned to use systemd timers as a
possible backend.
* lh/systemd-timers:
maintenance: add support for systemd timers on Linux
maintenance: `git maintenance run` learned `--scheduler=<scheduler>`
cache.h: Introduce a generic "xdg_config_home_for(…)" function
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -1299,6 +1299,13 @@ int looks_like_command_line_option(const char *str); /** * Return a newly allocated string with the evaluation of + * "$XDG_CONFIG_HOME/$subdir/$filename" if $XDG_CONFIG_HOME is non-empty, otherwise + * "$HOME/.config/$subdir/$filename". Return NULL upon error. + */ +char *xdg_config_home_for(const char *subdir, const char *filename); + +/** + * Return a newly allocated string with the evaluation of * "$XDG_CONFIG_HOME/git/$filename" if $XDG_CONFIG_HOME is non-empty, otherwise * "$HOME/.config/git/$filename". Return NULL upon error. */ |