libgit2

git_reference_format_t

Version:

Normalization options for reference lookup

Values

GIT_REFERENCE_FORMAT_NORMAL
0

No particular normalization.

GIT_REFERENCE_FORMAT_ALLOW_ONELEVEL
(1 << 0)

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_REFERENCE_FORMAT_REFSPEC_PATTERN
(1 << 1)

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_REFERENCE_FORMAT_REFSPEC_SHORTHAND
(1 << 2)

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