diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-01-16 02:20:28 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-01-16 02:20:28 +0300 |
commit | 9ba366f12baa9eae07c07fad0e873940dfc25e11 (patch) | |
tree | 5399b7640d2234e090218cf161d04d5a97fa279e /cache.h | |
parent | 6dbbae17d9d1f35e7b46d04ba69e453e0a384ac9 (diff) | |
parent | fac60b89252e5865da077bb6ccaa9bef43efbfeb (diff) |
Merge branch 'bc/rev-parse-path-format'
"git rev-parse" can be explicitly told to give output as absolute
or relative path with the `--path-format=(absolute|relative)` option.
* bc/rev-parse-path-format:
rev-parse: add option for absolute or relative path formatting
abspath: add a function to resolve paths with missing components
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1231,6 +1231,8 @@ static inline int is_absolute_path(const char *path) int is_directory(const char *); char *strbuf_realpath(struct strbuf *resolved, const char *path, int die_on_error); +char *strbuf_realpath_forgiving(struct strbuf *resolved, const char *path, + int die_on_error); char *real_pathdup(const char *path, int die_on_error); const char *absolute_path(const char *path); char *absolute_pathdup(const char *path); |