diff options
author | Arthur Schreiber <schreiber.arthur@googlemail.com> | 2014-05-15 22:44:50 +0200 |
---|---|---|
committer | Arthur Schreiber <schreiber.arthur@googlemail.com> | 2014-05-30 14:30:30 +0200 |
commit | 68f9d6b2833774c279964790eda97363225e09a7 (patch) | |
tree | 431059064afc80d5b540d4ce86bc02a6b19ef100 /src/refs.h | |
parent | 5f0527aeac65b10b0df9034f5763865d253daf75 (diff) | |
download | libgit2-68f9d6b2833774c279964790eda97363225e09a7.tar.gz |
Refs: Fix some issue when core.precomposeunicode = true.
This fixes two issues I found when core.precomposeunicode is enabled:
* When creating a reference with a NFD string, the returned
git_reference would return this NFD string as the reference’s
name. But when looking up the reference later, the name would
then be returned as NFC string.
* Renaming a reference would not honor the core.precomposeunicode and
apply no normalization to the new reference name.
Diffstat (limited to 'src/refs.h')
-rw-r--r-- | src/refs.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/refs.h b/src/refs.h index d57d67026..7337e2a48 100644 --- a/src/refs.h +++ b/src/refs.h @@ -66,7 +66,6 @@ struct git_reference { git_reference *git_reference__set_name(git_reference *ref, const char *name); -int git_reference__normalize_name_lax(char *buffer_out, size_t out_size, const char *name); int git_reference__normalize_name(git_buf *buf, const char *name, unsigned int flags); int git_reference__update_terminal(git_repository *repo, const char *ref_name, const git_oid *oid, const git_signature *signature, const char *log_message); int git_reference__is_valid_name(const char *refname, unsigned int flags); |