[PATCH 0/5] Consolidate path normalization functions
- From
Johannes Sixt <j6t@kdbg.org>
- Date
- Feb 7, 2009, 15:08 UTC
- Message-ID
- <1234019311-6449-1-git-send-email-j6t@kdbg.org>
- In-Reply-To
- <498CAF73.6050409@lsrfire.ath.cx>
This series:
- moves sanitary_path_copy around, which accounts for the bulk of the change;
- updates longest_ancestor_length(), the core function of GIT_CEILING_DIRECTORIES;
- adjust the test suite, uncovers a buglet in sanitary_path_copy(), and fixes it.
- removes normalize_absolute_path() that duplicated functionality of sanitary_path_copy().
As a side effect, this fixes GIT_CEILING_DIRECTORIES on Windows, where this feature is currently broken.
Johannes Sixt (4):
Make test-path-utils more robust against incorrect use
Move sanitary_path_copy() to path.c and rename it to
normalize_path_copy()
Test and fix normalize_path_copy()
Remove unused normalize_absolute_path()René Scharfe (1): Fix t1504 on Windows
cache.h | 2 +- path.c | 124 ++++++++++++++++++++++++++------------- setup.c | 88 +--------------------------- t/t0060-path-utils.sh | 33 +++++----- t/t1504-ceiling-dirs.sh | 6 +- test-path-utils.c | 14 +++- 6 files changed, 115 insertions(+), 152 deletions(-)