Value | Meaning |
---|---|
GIT_REFERENCE_FORMAT_NORMAL0u | No particular normalization. |
GIT_REFERENCE_FORMAT_ALLOW_ONELEVEL1u << 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_PATTERN1u << 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_SHORTHAND1u << 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. |
Normalization options for reference lookup