aboutsummaryrefslogtreecommitdiff
path: root/string-list.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-01-28 11:07:18 -0800
committerJunio C Hamano <gitster@pobox.com>2013-01-28 11:07:18 -0800
commitce956fc48eb6f4a8eb90fd22a7d730e8d012f91f (patch)
treeb27b87bf56871b8b4c8f2818f811682d20ca0918 /string-list.h
parentb344bb19358bcf8cf62c28ce205fdfd8acfa6b6b (diff)
parent059b37934c611b1b9b735e0310ba282a0c7f5eba (diff)
downloadgit-ce956fc48eb6f4a8eb90fd22a7d730e8d012f91f.tar.gz
git-ce956fc48eb6f4a8eb90fd22a7d730e8d012f91f.tar.xz
Merge branch 'mh/ceiling' into maint
An element on GIT_CEILING_DIRECTORIES list that does not name the real path to a directory (i.e. a symbolic link) could have caused the GIT_DIR discovery logic to escape the ceiling. * mh/ceiling: string_list_longest_prefix(): remove function setup_git_directory_gently_1(): resolve symlinks in ceiling paths longest_ancestor_length(): require prefix list entries to be normalized longest_ancestor_length(): take a string_list argument for prefixes longest_ancestor_length(): use string_list_split() Introduce new function real_path_if_valid() real_path_internal(): add comment explaining use of cwd Introduce new static function real_path_internal()
Diffstat (limited to 'string-list.h')
-rw-r--r--string-list.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/string-list.h b/string-list.h
index c50b0d0de..db1284861 100644
--- a/string-list.h
+++ b/string-list.h
@@ -45,15 +45,6 @@ void filter_string_list(struct string_list *list, int free_util,
*/
void string_list_remove_empty_items(struct string_list *list, int free_util);
-/*
- * Return the longest string in prefixes that is a prefix (in the
- * sense of prefixcmp()) of string, or NULL if no such prefix exists.
- * This function does not require the string_list to be sorted (it
- * does a linear search).
- */
-char *string_list_longest_prefix(const struct string_list *prefixes, const char *string);
-
-
/* Use these functions only on sorted lists: */
int string_list_has_string(const struct string_list *list, const char *string);
int string_list_find_insert_index(const struct string_list *list, const char *string,