Skip to content
This repository has been archived by the owner on Oct 17, 2021. It is now read-only.

Reference_Format

mattt edited this page Aug 17, 2020 · 2 revisions

Reference.Format

Normalization options for reference lookup.

public enum Format

Enumeration Cases

normal

No particular normalization.

case normal

allowOneLevel

Control whether one-level refnames are accepted (i.e., refnames that do not contain multiple /-separated components).

case allowOneLevel

Those are expected to be written only using uppercase letters and underscore (FETCH_HEAD, ...)

refspecPattern

Interpret the provided name as a reference pattern for a refspec (as used with remote repositories).

case refspecPattern

If this option is enabled, the name is allowed to contain a single * () in place of a one full pathname component (e.g., foo/<star>/bar but not foo/bar<star>).

refspecShorthand

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.

case refspecShorthand
Clone this wiki locally