diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-08-24 15:32:38 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-08-24 15:32:38 -0700 |
commit | aab0eeaba56e87f4d471b8e2aba9a648e5606d01 (patch) | |
tree | bbc00ea37f54ff6005fa6b909a87e81fc85ed062 /cache.h | |
parent | f19b2752e7788ad3a66812fd37fc482fc247eb4c (diff) | |
parent | 7ed37eb8ae485ff5590c656e871d6c739edfa067 (diff) | |
download | git-aab0eeaba56e87f4d471b8e2aba9a648e5606d01.tar.gz |
Merge branch 'js/expand-runtime-prefix'
Pathname expansion (like "~username/") learned a way to specify a
location relative to Git installation (e.g. its $sharedir which is
$(prefix)/share), with "%(prefix)".
* js/expand-runtime-prefix:
expand_user_path: allow in-flight topics to keep using the old name
interpolate_path(): allow specifying paths relative to the runtime prefix
Use a better name for the function interpolating paths
expand_user_path(): clarify the role of the `real_home` parameter
expand_user_path(): remove stale part of the comment
tests: exercise the RUNTIME_PREFIX feature
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1255,7 +1255,9 @@ typedef int create_file_fn(const char *path, void *cb); int raceproof_create_file(const char *path, create_file_fn fn, void *cb); int mkdir_in_gitdir(const char *path); -char *expand_user_path(const char *path, int real_home); +char *interpolate_path(const char *path, int real_home); +/* NEEDSWORK: remove this synonym once in-flight topics have migrated */ +#define expand_user_path interpolate_path const char *enter_repo(const char *path, int strict); static inline int is_absolute_path(const char *path) { |