This will normalize the reference name by removing any leading slash
'/' characters and collapsing runs of adjacent slashes between name
components into a single slash.
Once normalized, if the reference name is valid, it will be returned in
the user allocated buffer.
See git_reference_symbolic_create() for rules about valid names.
@param buffer_out User allocated buffer to store normalized name
@param buffer_size Size of buffer_out
@param name Reference name to be checked.
@param flags Flags to constrain name validation rules - see the
GIT_REFERENCE_FORMAT constants above.
@return 0 on success, git_error_code.GIT_EBUFS if buffer is too small, git_error_code.GIT_EINVALIDSPEC
or an error code.
Normalize reference name and check validity.
This will normalize the reference name by removing any leading slash '/' characters and collapsing runs of adjacent slashes between name components into a single slash.
Once normalized, if the reference name is valid, it will be returned in the user allocated buffer.
See git_reference_symbolic_create() for rules about valid names.
@param buffer_out User allocated buffer to store normalized name @param buffer_size Size of buffer_out @param name Reference name to be checked. @param flags Flags to constrain name validation rules - see the GIT_REFERENCE_FORMAT constants above. @return 0 on success, git_error_code.GIT_EBUFS if buffer is too small, git_error_code.GIT_EINVALIDSPEC or an error code.