While the object storage format extension can already be configured manually via git-config(1), this isn't exactly an ergonomic way of doing so. For the reference storage format extension, users have a host of options available to them. Introduce the equivalent options for the object storage format. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
34 lines
1.5 KiB
Plaintext
34 lines
1.5 KiB
Plaintext
:see-git-init:
|
|
ifndef::git-init[]
|
|
:see-git-init: (See the "TEMPLATE DIRECTORY" section of linkgit:git-init[1].)
|
|
endif::[]
|
|
|
|
`init.templateDir`::
|
|
Specify the directory from which templates will be copied. {see-git-init}
|
|
`init.defaultBranch`::
|
|
Allows overriding the default branch name e.g. when initializing
|
|
a new repository.
|
|
`init.defaultObjectFormat`::
|
|
Allows overriding the default object format for new repositories. See
|
|
`--object-format=` in linkgit:git-init[1]. Both the command line option
|
|
and the `GIT_DEFAULT_HASH` environment variable take precedence over
|
|
this config.
|
|
`init.defaultRefStorageFormat`::
|
|
Allows overriding the default ref storage format for new repositories.
|
|
See `--ref-storage-format=` in linkgit:git-init[1]. Both the command line
|
|
option and the `GIT_DEFAULT_REF_STORAGE_FORMAT` environment variable take
|
|
precedence over this config.
|
|
`init.defaultRefFormat`::
|
|
Deprecated alias of `init.defaultRefStorageFormat`.
|
|
`init.defaultObjectStorageFormat`::
|
|
Allows overriding the default object storage format for new
|
|
repositories. See `--object-storage-format=` in linkgit:git-init[1].
|
|
Both the command line option and the `GIT_DEFAULT_OBJECT_STORAGE_FORMAT`
|
|
environment variable take precedence over this config.
|
|
|
|
init.defaultSubmodulePathConfig::
|
|
A boolean that specifies if `git init` and `git clone` should
|
|
automatically set `extensions.submodulePathConfig` to `true`. This
|
|
allows all new repositories to automatically use the submodule path
|
|
extension. Defaults to `false` when unset.
|