libgit2

git_reference_normalize_t

Version:

Values

GIT_REF_FORMAT_NORMAL
0
GIT_REF_FORMAT_ALLOW_ONELEVEL
1

Control whether one-level refnames are accepted (i.e., refnames that do not contain multiple /-separated components). Those are expected to be written only using uppercase letters and underscore (FETCH_HEAD, ...)

GIT_REF_FORMAT_REFSPEC_PATTERN
2

Interpret the provided name as a reference pattern for a refspec (as used with remote repositories). If this option is enabled, the name is allowed to contain a single * ( <star>) in place of a one full pathname component (e.g., foo/ <star>/bar but not foo/bar <star>).

GIT_REF_FORMAT_REFSPEC_SHORTHAND
3

Interpret the name as part of a refspec in shorthand form so the ONELEVEL naming rules aren't enforced and 'master' becomes a valid name.

Versions