Merge branch 'jc/conf-var-doc' into maint
Longstanding configuration variable naming rules has been added to the documentation. * jc/conf-var-doc: CodingGuidelines: describe naming rules for configuration variables config.txt: mark deprecated variables more prominently config.txt: clarify that add.ignore-errors is deprecated
This commit is contained in:
commit
c11c154f42
@ -413,6 +413,29 @@ Error Messages
|
|||||||
- Say what the error is first ("cannot open %s", not "%s: cannot open")
|
- Say what the error is first ("cannot open %s", not "%s: cannot open")
|
||||||
|
|
||||||
|
|
||||||
|
Externally Visible Names
|
||||||
|
|
||||||
|
- For configuration variable names, follow the existing convention:
|
||||||
|
|
||||||
|
. The section name indicates the affected subsystem.
|
||||||
|
|
||||||
|
. The subsection name, if any, indicates which of an unbounded set
|
||||||
|
of things to set the value for.
|
||||||
|
|
||||||
|
. The variable name describes the effect of tweaking this knob.
|
||||||
|
|
||||||
|
The section and variable names that consist of multiple words are
|
||||||
|
formed by concatenating the words without punctuations (e.g. `-`),
|
||||||
|
and are broken using bumpyCaps in documentation as a hint to the
|
||||||
|
reader.
|
||||||
|
|
||||||
|
When choosing the variable namespace, do not use variable name for
|
||||||
|
specifying possibly unbounded set of things, most notably anything
|
||||||
|
an end user can freely come up with (e.g. branch names). Instead,
|
||||||
|
use subsection names or variable values, like the existing variable
|
||||||
|
branch.<name>.description does.
|
||||||
|
|
||||||
|
|
||||||
Writing Documentation:
|
Writing Documentation:
|
||||||
|
|
||||||
Most (if not all) of the documentation pages are written in the
|
Most (if not all) of the documentation pages are written in the
|
||||||
|
@ -683,14 +683,13 @@ core.abbrev::
|
|||||||
for abbreviated object names to stay unique for sufficiently long
|
for abbreviated object names to stay unique for sufficiently long
|
||||||
time.
|
time.
|
||||||
|
|
||||||
add.ignore-errors::
|
|
||||||
add.ignoreErrors::
|
add.ignoreErrors::
|
||||||
|
add.ignore-errors (deprecated)::
|
||||||
Tells 'git add' to continue adding files when some files cannot be
|
Tells 'git add' to continue adding files when some files cannot be
|
||||||
added due to indexing errors. Equivalent to the '--ignore-errors'
|
added due to indexing errors. Equivalent to the '--ignore-errors'
|
||||||
option of linkgit:git-add[1]. Older versions of Git accept only
|
option of linkgit:git-add[1]. `add.ignore-errors` is deprecated,
|
||||||
`add.ignore-errors`, which does not follow the usual naming
|
as it does not follow the usual naming convention for configuration
|
||||||
convention for configuration variables. Newer versions of Git
|
variables.
|
||||||
honor `add.ignoreErrors` as well.
|
|
||||||
|
|
||||||
alias.*::
|
alias.*::
|
||||||
Command aliases for the linkgit:git[1] command wrapper - e.g.
|
Command aliases for the linkgit:git[1] command wrapper - e.g.
|
||||||
@ -1960,7 +1959,7 @@ pack.useBitmaps::
|
|||||||
true. You should not generally need to turn this off unless
|
true. You should not generally need to turn this off unless
|
||||||
you are debugging pack bitmaps.
|
you are debugging pack bitmaps.
|
||||||
|
|
||||||
pack.writebitmaps::
|
pack.writebitmaps (deprecated)::
|
||||||
This is a deprecated synonym for `repack.writeBitmaps`.
|
This is a deprecated synonym for `repack.writeBitmaps`.
|
||||||
|
|
||||||
pack.writeBitmapHashCache::
|
pack.writeBitmapHashCache::
|
||||||
@ -2297,7 +2296,7 @@ sendemail.smtpencryption::
|
|||||||
See linkgit:git-send-email[1] for description. Note that this
|
See linkgit:git-send-email[1] for description. Note that this
|
||||||
setting is not subject to the 'identity' mechanism.
|
setting is not subject to the 'identity' mechanism.
|
||||||
|
|
||||||
sendemail.smtpssl::
|
sendemail.smtpssl (deprecated)::
|
||||||
Deprecated alias for 'sendemail.smtpencryption = ssl'.
|
Deprecated alias for 'sendemail.smtpencryption = ssl'.
|
||||||
|
|
||||||
sendemail.smtpsslcertpath::
|
sendemail.smtpsslcertpath::
|
||||||
@ -2337,7 +2336,7 @@ sendemail.validate::
|
|||||||
sendemail.xmailer::
|
sendemail.xmailer::
|
||||||
See linkgit:git-send-email[1] for description.
|
See linkgit:git-send-email[1] for description.
|
||||||
|
|
||||||
sendemail.signedoffcc::
|
sendemail.signedoffcc (deprecated)::
|
||||||
Deprecated alias for 'sendemail.signedoffbycc'.
|
Deprecated alias for 'sendemail.signedoffbycc'.
|
||||||
|
|
||||||
showbranch.default::
|
showbranch.default::
|
||||||
|
Loading…
Reference in New Issue
Block a user