diff options
| author | Russell Belfer <rb@github.com> | 2013-10-08 16:35:57 -0700 |
|---|---|---|
| committer | Russell Belfer <rb@github.com> | 2013-10-08 16:35:57 -0700 |
| commit | 92dac975869bf6207eca0754345dc9aa7fec8992 (patch) | |
| tree | d210c8864e8cb2fba474b70057ed4655fda5535b /src/path.h | |
| parent | d5e83627e4ed764115175dc42090afe0df332fe3 (diff) | |
| download | libgit2-92dac975869bf6207eca0754345dc9aa7fec8992.tar.gz | |
Make reference lookups apply precomposeunicode
Before these changes, looking up a reference would return the
same precomposed or decomposed form of the reference name that
was used to look it up, so on MacOS which ignores the difference
between the two, a single reference could be looked up either way
and git_reference_name would return the form of the name that was
used to look it up! This change makes lookup always return the
precomposed name if core.precomposeunicode is set regardless of
which version was used to look it up. The reference iterator was
already returning the precomposed form from earlier work.
This also updates the CMakeLists.txt rules for enabling iconv
usage because the clar tests for this code were actually not being
activated properly with the old version.
Finally, this moves git_repository_reset_filesystem from include/
git2/repository.h to include/git2/sys/repository.h since it is not
really a function that normal library users should have to think
about very often.
Diffstat (limited to 'src/path.h')
| -rw-r--r-- | src/path.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/path.h b/src/path.h index 175756938..eaf94d486 100644 --- a/src/path.h +++ b/src/path.h @@ -365,11 +365,6 @@ extern int git_path_set_error( /* check if non-ascii characters are present in filename */ extern bool git_path_has_non_ascii(const char *path, size_t pathlen); -/* only enable iconv on Mac for now */ -#ifdef __APPLE__ -#define GIT_USE_ICONV 1 -#endif - #define GIT_PATH_REPO_ENCODING "UTF-8" #ifdef __APPLE__ |
