diff options
author | Michael Haggerty <mhagger@alum.mit.edu> | 2012-10-28 17:16:24 +0100 |
---|---|---|
committer | Jeff King <peff@peff.net> | 2012-10-29 02:34:58 -0400 |
commit | 31171d9e454d71144685866cfd6476b8ac69d314 (patch) | |
tree | 518d646035a3ea9415472e7f874d396d52b07822 /cache.h | |
parent | a5ccdbe416081d5749f286c193b70400e48ad03f (diff) | |
download | git-31171d9e454d71144685866cfd6476b8ac69d314.tar.gz git-31171d9e454d71144685866cfd6476b8ac69d314.tar.xz |
longest_ancestor_length(): take a string_list argument for prefixes
Change longest_ancestor_length() to take the prefixes argument as a
string_list rather than as a colon-separated string. This will make
it easier for the caller to alter the entries before calling
longest_ancestor_length().
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Jeff King <peff@peff.net>
Diffstat (limited to 'cache.h')
-rw-r--r-- | cache.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -718,7 +718,7 @@ const char *real_path_if_valid(const char *path); const char *absolute_path(const char *path); const char *relative_path(const char *abs, const char *base); int normalize_path_copy(char *dst, const char *src); -int longest_ancestor_length(const char *path, const char *prefix_list); +int longest_ancestor_length(const char *path, struct string_list *prefixes); char *strip_path_suffix(const char *path, const char *suffix); int daemon_avoid_alias(const char *path); int offset_1st_component(const char *path); |