GitRepositoryInit enum
Option flags for Repository init.
Values
- bare → const GitRepositoryInit
-
Create a bare repository with no working directory.
const GitRepositoryInit(1) - noReinit → const GitRepositoryInit
-
Return an GIT_EEXISTS error if the repo path appears to already be an git repository.
const GitRepositoryInit(2) - noDotGitDir → const GitRepositoryInit
-
Normally a "/.git/" will be appended to the repo path for non-bare repos (if it is not already there), but passing this flag prevents that behavior.
const GitRepositoryInit(4) - mkdir → const GitRepositoryInit
-
Make the repo path (and workdir path) as needed. Init is always willing to create the ".git" directory even without this flag. This flag tells init to create the trailing component of the repo and workdir paths as needed.
const GitRepositoryInit(8) - mkpath → const GitRepositoryInit
-
Recursively make all components of the repo and workdir paths as necessary.
const GitRepositoryInit(16) - externalTemplate → const GitRepositoryInit
-
libgit2 normally uses internal templates to initialize a new repo. This flags enables external templates, looking the
templatePathfrom the options if set, or theinit.templatedirglobal config if not, or falling back on "/usr/share/git-core/templates" if it exists.const GitRepositoryInit(32) - relativeGitlink → const GitRepositoryInit
-
If an alternate workdir is specified, use relative paths for the gitdir and core.worktree.
const GitRepositoryInit(64)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- value → int
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromValue(
int value) → GitRepositoryInit
Constants
-
values
→ const List<
GitRepositoryInit> - A constant List of the values in this enum, in order of their declaration.