Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-01-16 02:20:28 +0300
committerJunio C Hamano <gitster@pobox.com>2021-01-16 02:20:28 +0300
commit9ba366f12baa9eae07c07fad0e873940dfc25e11 (patch)
tree5399b7640d2234e090218cf161d04d5a97fa279e /cache.h
parent6dbbae17d9d1f35e7b46d04ba69e453e0a384ac9 (diff)
parentfac60b89252e5865da077bb6ccaa9bef43efbfeb (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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index 7109765748..eefa93b08f 100644
--- a/cache.h
+++ b/cache.h
@@ -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);