[PATCH v4 0/8] Fix GIT_CEILING_DIRECTORIES that contain symlinks
- From
Michael Haggerty <mhagger@alum.mit.edu>
- Date
- Oct 28, 2012, 16:16 UTC
- Message-ID
- <1351440987-26636-1-git-send-email-mhagger@alum.mit.edu>
v4 of the series; see the cover letter for v3 [1] for more editorial comments.
Changes since v3:
* For "test-path-utils longest_ancestor_length", normalize all of the paths using normalize_path_copy() to counteract the path mangling carried out by bash on Windows. (Thanks to Johannes Sixt for his helpful advice.)
* Rebased onto a more recent master.
[1] http://thread.gmane.org/gmane.comp.version-control.git/208102
Michael Haggerty (8):
Introduce new static function real_path_internal()
real_path_internal(): add comment explaining use of cwd
Introduce new function real_path_if_valid()
longest_ancestor_length(): use string_list_split()
longest_ancestor_length(): take a string_list argument for prefixes
longest_ancestor_length(): require prefix list entries to be
normalized
setup_git_directory_gently_1(): resolve symlinks in ceiling paths
string_list_longest_prefix(): remove functionDocumentation/technical/api-string-list.txt | 8 --- abspath.c | 105 ++++++++++++++++++++++------ cache.h | 3 +- path.c | 46 ++++++------ setup.c | 34 ++++++++- string-list.c | 20 ------ string-list.h | 8 --- t/t0060-path-utils.sh | 41 ++++------- t/t0063-string-list.sh | 30 -------- test-path-utils.c | 51 +++++++++++++- test-string-list.c | 20 ------ 11 files changed, 202 insertions(+), 164 deletions(-)
-- 1.8.0