提交 da0005b8 编写于 作者: N Nguyễn Thái Ngọc Duy 提交者: Junio C Hamano

*config.txt: stick to camelCase naming convention

This should improve readability. Compare "thislongname" and
"thisLongName". The following keys are left in unchanged. We can
decide what to do with them later.

 - am.keepcr
 - core.autocrlf .safecrlf .trustctime
 - diff.dirstat .noprefix
 - gitcvs.usecrlfattr
 - gui.blamehistoryctx .trustmtime
 - pull.twohead
 - receive.autogc
 - sendemail.signedoffbycc .smtpsslcertpath .suppresscc
Helped-by: NEric Sunshine <sunshine@sunshineco.com>
Signed-off-by: NNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: NEric Sunshine <sunshine@sunshineco.com>
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 7a9409cb
...@@ -526,7 +526,7 @@ Writing Documentation: ...@@ -526,7 +526,7 @@ Writing Documentation:
`backticks around word phrases`, do so. `backticks around word phrases`, do so.
`--pretty=oneline` `--pretty=oneline`
`git rev-list` `git rev-list`
`remote.pushdefault` `remote.pushDefault`
Word phrases enclosed in `backtick characters` are rendered literally Word phrases enclosed in `backtick characters` are rendered literally
and will not be further expanded. The use of `backticks` to achieve the and will not be further expanded. The use of `backticks` to achieve the
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
--root:: --root::
Do not treat root commits as boundaries. This can also be Do not treat root commits as boundaries. This can also be
controlled via the `blame.showroot` config option. controlled via the `blame.showRoot` config option.
--show-stats:: --show-stats::
Include additional statistics at the end of blame output. Include additional statistics at the end of blame output.
......
此差异已折叠。
diff.autorefreshindex:: diff.autoRefreshIndex::
When using 'git diff' to compare with work tree When using 'git diff' to compare with work tree
files, do not consider stat-only change as changed. files, do not consider stat-only change as changed.
Instead, silently run `git update-index --refresh` to Instead, silently run `git update-index --refresh` to
...@@ -75,11 +75,11 @@ diff.ignoreSubmodules:: ...@@ -75,11 +75,11 @@ diff.ignoreSubmodules::
commands such as 'git diff-files'. 'git checkout' also honors commands such as 'git diff-files'. 'git checkout' also honors
this setting when reporting uncommitted changes. Setting it to this setting when reporting uncommitted changes. Setting it to
'all' disables the submodule summary normally shown by 'git commit' 'all' disables the submodule summary normally shown by 'git commit'
and 'git status' when 'status.submodulesummary' is set unless it is and 'git status' when 'status.submoduleSummary' is set unless it is
overridden by using the --ignore-submodules command-line option. overridden by using the --ignore-submodules command-line option.
The 'git submodule' commands are not affected by this setting. The 'git submodule' commands are not affected by this setting.
diff.mnemonicprefix:: diff.mnemonicPrefix::
If set, 'git diff' uses a prefix pair that is different from the If set, 'git diff' uses a prefix pair that is different from the
standard "a/" and "b/" depending on what is being compared. When standard "a/" and "b/" depending on what is being compared. When
this configuration is in effect, reverse diff output also swaps this configuration is in effect, reverse diff output also swaps
...@@ -98,7 +98,7 @@ diff.mnemonicprefix:: ...@@ -98,7 +98,7 @@ diff.mnemonicprefix::
diff.noprefix:: diff.noprefix::
If set, 'git diff' does not show any source or destination prefix. If set, 'git diff' does not show any source or destination prefix.
diff.orderfile:: diff.orderFile::
File indicating how to order files within a diff, using File indicating how to order files within a diff, using
one shell glob pattern per line. one shell glob pattern per line.
Can be overridden by the '-O' option to linkgit:git-diff[1]. Can be overridden by the '-O' option to linkgit:git-diff[1].
...@@ -148,7 +148,7 @@ diff.<driver>.textconv:: ...@@ -148,7 +148,7 @@ diff.<driver>.textconv::
conversion is used to generate a human-readable diff. See conversion is used to generate a human-readable diff. See
linkgit:gitattributes[5] for details. linkgit:gitattributes[5] for details.
diff.<driver>.wordregex:: diff.<driver>.wordRegex::
The regular expression that the diff driver should use to The regular expression that the diff driver should use to
split words in a line. See linkgit:gitattributes[5] for split words in a line. See linkgit:gitattributes[5] for
details. details.
......
...@@ -432,8 +432,8 @@ endif::git-format-patch[] ...@@ -432,8 +432,8 @@ endif::git-format-patch[]
-O<orderfile>:: -O<orderfile>::
Output the patch in the order specified in the Output the patch in the order specified in the
<orderfile>, which has one shell glob pattern per line. <orderfile>, which has one shell glob pattern per line.
This overrides the `diff.orderfile` configuration variable This overrides the `diff.orderFile` configuration variable
(see linkgit:git-config[1]). To cancel `diff.orderfile`, (see linkgit:git-config[1]). To cancel `diff.orderFile`,
use `-O/dev/null`. use `-O/dev/null`.
ifndef::git-format-patch[] ifndef::git-format-patch[]
......
...@@ -68,7 +68,7 @@ endif::git-pull[] ...@@ -68,7 +68,7 @@ endif::git-pull[]
By default, tags that point at objects that are downloaded By default, tags that point at objects that are downloaded
from the remote repository are fetched and stored locally. from the remote repository are fetched and stored locally.
This option disables this automatic tag following. The default This option disables this automatic tag following. The default
behavior for a remote may be specified with the remote.<name>.tagopt behavior for a remote may be specified with the remote.<name>.tagOpt
setting. See linkgit:git-config[1]. setting. See linkgit:git-config[1].
ifndef::git-pull[] ifndef::git-pull[]
......
...@@ -173,7 +173,7 @@ for "git add --no-all <pathspec>...", i.e. ignored removed files. ...@@ -173,7 +173,7 @@ for "git add --no-all <pathspec>...", i.e. ignored removed files.
Configuration Configuration
------------- -------------
The optional configuration variable `core.excludesfile` indicates a path to a The optional configuration variable `core.excludesFile` indicates a path to a
file containing patterns of file names to exclude from git-add, similar to file containing patterns of file names to exclude from git-add, similar to
$GIT_DIR/info/exclude. Patterns in the exclude file are used in addition to $GIT_DIR/info/exclude. Patterns in the exclude file are used in addition to
those in info/exclude. See linkgit:gitignore[5]. those in info/exclude. See linkgit:gitignore[5].
...@@ -317,7 +317,7 @@ After deciding the fate for all hunks, if there is any hunk ...@@ -317,7 +317,7 @@ After deciding the fate for all hunks, if there is any hunk
that was chosen, the index is updated with the selected hunks. that was chosen, the index is updated with the selected hunks.
+ +
You can omit having to type return here, by setting the configuration You can omit having to type return here, by setting the configuration
variable `interactive.singlekey` to `true`. variable `interactive.singleKey` to `true`.
diff:: diff::
......
...@@ -242,7 +242,7 @@ has no effect when `--index` or `--cached` is in use. ...@@ -242,7 +242,7 @@ has no effect when `--index` or `--cached` is in use.
Configuration Configuration
------------- -------------
apply.ignorewhitespace:: apply.ignoreWhitespace::
Set to 'change' if you want changes in whitespace to be ignored by default. Set to 'change' if you want changes in whitespace to be ignored by default.
Set to one of: no, none, never, false if you want changes in Set to one of: no, none, never, false if you want changes in
whitespace to be significant. whitespace to be significant.
......
...@@ -51,7 +51,7 @@ When a local branch is started off a remote-tracking branch, Git sets up the ...@@ -51,7 +51,7 @@ When a local branch is started off a remote-tracking branch, Git sets up the
branch (specifically the `branch.<name>.remote` and `branch.<name>.merge` branch (specifically the `branch.<name>.remote` and `branch.<name>.merge`
configuration entries) so that 'git pull' will appropriately merge from configuration entries) so that 'git pull' will appropriately merge from
the remote-tracking branch. This behavior may be changed via the global the remote-tracking branch. This behavior may be changed via the global
`branch.autosetupmerge` configuration flag. That setting can be `branch.autoSetupMerge` configuration flag. That setting can be
overridden by using the `--track` and `--no-track` options, and overridden by using the `--track` and `--no-track` options, and
changed later using `git branch --set-upstream-to`. changed later using `git branch --set-upstream-to`.
...@@ -166,14 +166,14 @@ This option is only applicable in non-verbose mode. ...@@ -166,14 +166,14 @@ This option is only applicable in non-verbose mode.
upstream when the new branch is checked out. upstream when the new branch is checked out.
+ +
This behavior is the default when the start point is a remote-tracking branch. This behavior is the default when the start point is a remote-tracking branch.
Set the branch.autosetupmerge configuration variable to `false` if you Set the branch.autoSetupMerge configuration variable to `false` if you
want `git checkout` and `git branch` to always behave as if '--no-track' want `git checkout` and `git branch` to always behave as if '--no-track'
were given. Set it to `always` if you want this behavior when the were given. Set it to `always` if you want this behavior when the
start-point is either a local or remote-tracking branch. start-point is either a local or remote-tracking branch.
--no-track:: --no-track::
Do not set up "upstream" configuration, even if the Do not set up "upstream" configuration, even if the
branch.autosetupmerge configuration variable is true. branch.autoSetupMerge configuration variable is true.
--set-upstream:: --set-upstream::
If specified branch does not exist yet or if `--force` has been If specified branch does not exist yet or if `--force` has been
......
...@@ -72,7 +72,7 @@ matching pattern, <source> is the pattern's source file, and <linenum> ...@@ -72,7 +72,7 @@ matching pattern, <source> is the pattern's source file, and <linenum>
is the line number of the pattern within that source. If the pattern is the line number of the pattern within that source. If the pattern
contained a `!` prefix or `/` suffix, it will be preserved in the contained a `!` prefix or `/` suffix, it will be preserved in the
output. <source> will be an absolute path when referring to the file output. <source> will be an absolute path when referring to the file
configured by `core.excludesfile`, or relative to the repository root configured by `core.excludesFile`, or relative to the repository root
when referring to `.git/info/exclude` or a per-directory exclude file. when referring to `.git/info/exclude` or a per-directory exclude file.
If `-z` is specified, the pathnames in the output are delimited by the If `-z` is specified, the pathnames in the output are delimited by the
......
...@@ -144,7 +144,7 @@ explicitly give a name with '-b' in such a case. ...@@ -144,7 +144,7 @@ explicitly give a name with '-b' in such a case.
--no-track:: --no-track::
Do not set up "upstream" configuration, even if the Do not set up "upstream" configuration, even if the
branch.autosetupmerge configuration variable is true. branch.autoSetupMerge configuration variable is true.
-l:: -l::
Create the new branch's reflog; see linkgit:git-branch[1] for Create the new branch's reflog; see linkgit:git-branch[1] for
...@@ -210,7 +210,7 @@ the conflicted merge in the specified paths. ...@@ -210,7 +210,7 @@ the conflicted merge in the specified paths.
--conflict=<style>:: --conflict=<style>::
The same as --merge option above, but changes the way the The same as --merge option above, but changes the way the
conflicting hunks are presented, overriding the conflicting hunks are presented, overriding the
merge.conflictstyle configuration variable. Possible values are merge.conflictStyle configuration variable. Possible values are
"merge" (default) and "diff3" (in addition to what is shown by "merge" (default) and "diff3" (in addition to what is shown by
"merge" style, shows the original contents). "merge" style, shows the original contents).
......
...@@ -59,7 +59,7 @@ OPTIONS ...@@ -59,7 +59,7 @@ OPTIONS
GPG-sign commit. GPG-sign commit.
--no-gpg-sign:: --no-gpg-sign::
Countermand `commit.gpgsign` configuration variable that is Countermand `commit.gpgSign` configuration variable that is
set to force each and every commit to be signed. set to force each and every commit to be signed.
......
...@@ -310,7 +310,7 @@ configuration variable documented in linkgit:git-config[1]. ...@@ -310,7 +310,7 @@ configuration variable documented in linkgit:git-config[1].
GPG-sign commit. GPG-sign commit.
--no-gpg-sign:: --no-gpg-sign::
Countermand `commit.gpgsign` configuration variable that is Countermand `commit.gpgSign` configuration variable that is
set to force each and every commit to be signed. set to force each and every commit to be signed.
\--:: \--::
......
...@@ -405,7 +405,7 @@ true ...@@ -405,7 +405,7 @@ true
% git config --bool --get-urlmatch http.sslverify https://weak.example.com % git config --bool --get-urlmatch http.sslverify https://weak.example.com
false false
% git config --get-urlmatch http https://weak.example.com % git config --get-urlmatch http https://weak.example.com
http.cookiefile /tmp/cookie.txt http.cookieFile /tmp/cookie.txt
http.sslverify false http.sslverify false
------------ ------------
......
...@@ -154,7 +154,7 @@ with CVS_SERVER (and shouldn't) as 'git-shell' understands `cvs` to mean ...@@ -154,7 +154,7 @@ with CVS_SERVER (and shouldn't) as 'git-shell' understands `cvs` to mean
[gitcvs] [gitcvs]
enabled=1 enabled=1
# optional for debugging # optional for debugging
logfile=/path/to/logfile logFile=/path/to/logfile
------ ------
Note: you need to ensure each user that is going to invoke 'git-cvsserver' has Note: you need to ensure each user that is going to invoke 'git-cvsserver' has
...@@ -254,14 +254,14 @@ Configuring database backend ...@@ -254,14 +254,14 @@ Configuring database backend
its documentation if changing these variables, especially its documentation if changing these variables, especially
about `DBI->connect()`. about `DBI->connect()`.
gitcvs.dbname:: gitcvs.dbName::
Database name. The exact meaning depends on the Database name. The exact meaning depends on the
selected database driver, for SQLite this is a filename. selected database driver, for SQLite this is a filename.
Supports variable substitution (see below). May Supports variable substitution (see below). May
not contain semicolons (`;`). not contain semicolons (`;`).
Default: '%Ggitcvs.%m.sqlite' Default: '%Ggitcvs.%m.sqlite'
gitcvs.dbdriver:: gitcvs.dbDriver::
Used DBI driver. You can specify any available driver Used DBI driver. You can specify any available driver
for this here, but it might not work. cvsserver is tested for this here, but it might not work. cvsserver is tested
with 'DBD::SQLite', reported to work with with 'DBD::SQLite', reported to work with
...@@ -271,12 +271,12 @@ gitcvs.dbdriver:: ...@@ -271,12 +271,12 @@ gitcvs.dbdriver::
Default: 'SQLite' Default: 'SQLite'
gitcvs.dbuser:: gitcvs.dbuser::
Database user. Only useful if setting `dbdriver`, since Database user. Only useful if setting `dbDriver`, since
SQLite has no concept of database users. Supports variable SQLite has no concept of database users. Supports variable
substitution (see below). substitution (see below).
gitcvs.dbpass:: gitcvs.dbPass::
Database password. Only useful if setting `dbdriver`, since Database password. Only useful if setting `dbDriver`, since
SQLite has no concept of database passwords. SQLite has no concept of database passwords.
gitcvs.dbTableNamePrefix:: gitcvs.dbTableNamePrefix::
...@@ -288,7 +288,7 @@ All variables can also be set per access method, see <<configaccessmethod,above> ...@@ -288,7 +288,7 @@ All variables can also be set per access method, see <<configaccessmethod,above>
Variable substitution Variable substitution
^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^
In `dbdriver` and `dbuser` you can use the following variables: In `dbDriver` and `dbUser` you can use the following variables:
%G:: %G::
Git directory name Git directory name
...@@ -413,16 +413,16 @@ about end-of-line conversion. ...@@ -413,16 +413,16 @@ about end-of-line conversion.
Alternatively, if `gitcvs.usecrlfattr` config is not enabled Alternatively, if `gitcvs.usecrlfattr` config is not enabled
or the attributes do not allow automatic detection for a filename, then or the attributes do not allow automatic detection for a filename, then
the server uses the `gitcvs.allbinary` config for the default setting. the server uses the `gitcvs.allBinary` config for the default setting.
If `gitcvs.allbinary` is set, then file not otherwise If `gitcvs.allBinary` is set, then file not otherwise
specified will default to '-kb' mode. Otherwise the '-k' mode specified will default to '-kb' mode. Otherwise the '-k' mode
is left blank. But if `gitcvs.allbinary` is set to "guess", then is left blank. But if `gitcvs.allBinary` is set to "guess", then
the correct '-k' mode will be guessed based on the contents of the correct '-k' mode will be guessed based on the contents of
the file. the file.
For best consistency with 'cvs', it is probably best to override the For best consistency with 'cvs', it is probably best to override the
defaults by setting `gitcvs.usecrlfattr` to true, defaults by setting `gitcvs.usecrlfattr` to true,
and `gitcvs.allbinary` to "guess". and `gitcvs.allBinary` to "guess".
Dependencies Dependencies
------------ ------------
......
...@@ -26,7 +26,7 @@ By default, any tag that points into the histories being fetched is ...@@ -26,7 +26,7 @@ By default, any tag that points into the histories being fetched is
also fetched; the effect is to fetch tags that also fetched; the effect is to fetch tags that
point at branches that you are interested in. This default behavior point at branches that you are interested in. This default behavior
can be changed by using the --tags or --no-tags options or by can be changed by using the --tags or --no-tags options or by
configuring remote.<name>.tagopt. By using a refspec that fetches tags configuring remote.<name>.tagOpt. By using a refspec that fetches tags
explicitly, you can fetch tags that do not point into branches you explicitly, you can fetch tags that do not point into branches you
are interested in as well. are interested in as well.
......
...@@ -273,13 +273,13 @@ attachments, and sign off patches with configuration variables. ...@@ -273,13 +273,13 @@ attachments, and sign off patches with configuration variables.
------------ ------------
[format] [format]
headers = "Organization: git-foo\n" headers = "Organization: git-foo\n"
subjectprefix = CHANGE subjectPrefix = CHANGE
suffix = .txt suffix = .txt
numbered = auto numbered = auto
to = <email> to = <email>
cc = <email> cc = <email>
attach [ = mime-boundary-string ] attach [ = mime-boundary-string ]
signoff = true signOff = true
coverletter = auto coverletter = auto
------------ ------------
......
...@@ -54,10 +54,10 @@ all loose objects are combined into a single pack using ...@@ -54,10 +54,10 @@ all loose objects are combined into a single pack using
`git repack -d -l`. Setting the value of `gc.auto` to 0 `git repack -d -l`. Setting the value of `gc.auto` to 0
disables automatic packing of loose objects. disables automatic packing of loose objects.
+ +
If the number of packs exceeds the value of `gc.autopacklimit`, If the number of packs exceeds the value of `gc.autoPackLimit`,
then existing packs (except those marked with a `.keep` file) then existing packs (except those marked with a `.keep` file)
are consolidated into a single pack by using the `-A` option of are consolidated into a single pack by using the `-A` option of
'git repack'. Setting `gc.autopacklimit` to 0 disables 'git repack'. Setting `gc.autoPackLimit` to 0 disables
automatic consolidation of packs. automatic consolidation of packs.
--prune=<date>:: --prune=<date>::
...@@ -101,18 +101,18 @@ branches: ...@@ -101,18 +101,18 @@ branches:
------------ ------------
[gc "refs/remotes/*"] [gc "refs/remotes/*"]
reflogExpire = never reflogExpire = never
reflogexpireUnreachable = 3 days reflogExpireUnreachable = 3 days
------------ ------------
The optional configuration variable 'gc.rerereresolved' indicates The optional configuration variable 'gc.rerereResolved' indicates
how long records of conflicted merge you resolved earlier are how long records of conflicted merge you resolved earlier are
kept. This defaults to 60 days. kept. This defaults to 60 days.
The optional configuration variable 'gc.rerereunresolved' indicates The optional configuration variable 'gc.rerereUnresolved' indicates
how long records of conflicted merge you have not resolved are how long records of conflicted merge you have not resolved are
kept. This defaults to 15 days. kept. This defaults to 15 days.
The optional configuration variable 'gc.packrefs' determines if The optional configuration variable 'gc.packRefs' determines if
'git gc' runs 'git pack-refs'. This can be set to "notbare" to enable 'git gc' runs 'git pack-refs'. This can be set to "notbare" to enable
it within all non-bare repos or it can be set to a boolean value. it within all non-bare repos or it can be set to a boolean value.
This defaults to true. This defaults to true.
......
...@@ -125,7 +125,7 @@ The template directory will be one of the following (in order): ...@@ -125,7 +125,7 @@ The template directory will be one of the following (in order):
- the contents of the `$GIT_TEMPLATE_DIR` environment variable; - the contents of the `$GIT_TEMPLATE_DIR` environment variable;
- the `init.templatedir` configuration variable; or - the `init.templateDir` configuration variable; or
- the default template directory: `/usr/share/git-core/templates`. - the default template directory: `/usr/share/git-core/templates`.
......
...@@ -76,7 +76,7 @@ You may specify configuration in your .git/config ...@@ -76,7 +76,7 @@ You may specify configuration in your .git/config
httpd = apache2 -f httpd = apache2 -f
port = 4321 port = 4321
browser = konqueror browser = konqueror
modulepath = /usr/lib/apache2/modules modulePath = /usr/lib/apache2/modules
----------------------------------------------------------------------- -----------------------------------------------------------------------
......
...@@ -184,7 +184,7 @@ log.date:: ...@@ -184,7 +184,7 @@ log.date::
`--date` option.) Defaults to "default", which means to write `--date` option.) Defaults to "default", which means to write
dates like `Sat May 8 19:35:34 2010 -0500`. dates like `Sat May 8 19:35:34 2010 -0500`.
log.showroot:: log.showRoot::
If `false`, `git log` and related commands will not treat the If `false`, `git log` and related commands will not treat the
initial commit as a big creation event. Any root commits in initial commit as a big creation event. Any root commits in
`git log -p` output would be shown without a diff attached. `git log -p` output would be shown without a diff attached.
......
...@@ -232,7 +232,7 @@ Barbie's remark on your side. The only thing you can tell is that your ...@@ -232,7 +232,7 @@ Barbie's remark on your side. The only thing you can tell is that your
side wants to say it is hard and you'd prefer to go shopping, while the side wants to say it is hard and you'd prefer to go shopping, while the
other side wants to claim it is easy. other side wants to claim it is easy.
An alternative style can be used by setting the "merge.conflictstyle" An alternative style can be used by setting the "merge.conflictStyle"
configuration variable to "diff3". In "diff3" style, the above conflict configuration variable to "diff3". In "diff3" style, the above conflict
may look like this: may look like this:
...@@ -329,7 +329,7 @@ CONFIGURATION ...@@ -329,7 +329,7 @@ CONFIGURATION
------------- -------------
include::merge-config.txt[] include::merge-config.txt[]
branch.<name>.mergeoptions:: branch.<name>.mergeOptions::
Sets default options for merging into branch <name>. The syntax and Sets default options for merging into branch <name>. The syntax and
supported options are the same as those of 'git merge', but option supported options are the same as those of 'git merge', but option
values containing whitespace characters are currently not supported. values containing whitespace characters are currently not supported.
......
...@@ -117,7 +117,7 @@ locally created merge commits will not be flattened. ...@@ -117,7 +117,7 @@ locally created merge commits will not be flattened.
+ +
When false, merge the current branch into the upstream branch. When false, merge the current branch into the upstream branch.
+ +
See `pull.rebase`, `branch.<name>.rebase` and `branch.autosetuprebase` in See `pull.rebase`, `branch.<name>.rebase` and `branch.autoSetupRebase` in
linkgit:git-config[1] if you want to make `git pull` always use linkgit:git-config[1] if you want to make `git pull` always use
`--rebase` instead of merging. `--rebase` instead of merging.
+ +
......
...@@ -207,10 +207,10 @@ rebase.stat:: ...@@ -207,10 +207,10 @@ rebase.stat::
Whether to show a diffstat of what changed upstream since the last Whether to show a diffstat of what changed upstream since the last
rebase. False by default. rebase. False by default.
rebase.autosquash:: rebase.autoSquash::
If set to true enable '--autosquash' option by default. If set to true enable '--autosquash' option by default.
rebase.autostash:: rebase.autoStash::
If set to true enable '--autostash' option by default. If set to true enable '--autostash' option by default.
OPTIONS OPTIONS
...@@ -414,7 +414,7 @@ squash/fixup series. ...@@ -414,7 +414,7 @@ squash/fixup series.
This option is only valid when the '--interactive' option is used. This option is only valid when the '--interactive' option is used.
+ +
If the '--autosquash' option is enabled by default using the If the '--autosquash' option is enabled by default using the
configuration variable `rebase.autosquash`, this option can be configuration variable `rebase.autoSquash`, this option can be
used to override and disable this setting. used to override and disable this setting.
--[no-]autostash:: --[no-]autostash::
......
...@@ -100,7 +100,7 @@ the following environment variables: ...@@ -100,7 +100,7 @@ the following environment variables:
starting time is different by this many seconds from the starting time is different by this many seconds from the
current session. Only meaningful when current session. Only meaningful when
`GIT_PUSH_CERT_NONCE_STATUS` says `SLOP`. `GIT_PUSH_CERT_NONCE_STATUS` says `SLOP`.
Also read about `receive.certnonceslop` variable in Also read about `receive.certNonceSlop` variable in
linkgit:git-config[1]. linkgit:git-config[1].
This hook is called before any refname is updated and before any This hook is called before any refname is updated and before any
......
...@@ -115,7 +115,7 @@ other objects in that pack they already have locally. ...@@ -115,7 +115,7 @@ other objects in that pack they already have locally.
Write a reachability bitmap index as part of the repack. This Write a reachability bitmap index as part of the repack. This
only makes sense when used with `-a` or `-A`, as the bitmaps only makes sense when used with `-a` or `-A`, as the bitmaps
must be able to refer to all reachable objects. This option must be able to refer to all reachable objects. This option
overrides the setting of `pack.writebitmaps`. overrides the setting of `pack.writeBitmaps`.
--pack-kept-objects:: --pack-kept-objects::
Include objects in `.keep` files when repacking. Note that we Include objects in `.keep` files when repacking. Note that we
...@@ -123,7 +123,7 @@ other objects in that pack they already have locally. ...@@ -123,7 +123,7 @@ other objects in that pack they already have locally.
This means that we may duplicate objects, but this makes the This means that we may duplicate objects, but this makes the
option safe to use when there are concurrent pushes or fetches. option safe to use when there are concurrent pushes or fetches.
This option is generally only useful if you are writing bitmaps This option is generally only useful if you are writing bitmaps
with `-b` or `pack.writebitmaps`, as it ensures that the with `-b` or `pack.writeBitmaps`, as it ensures that the
bitmapped packfile has the necessary objects. bitmapped packfile has the necessary objects.
Configuration Configuration
......
...@@ -69,7 +69,7 @@ Prune records of conflicted merges that ...@@ -69,7 +69,7 @@ Prune records of conflicted merges that
occurred a long time ago. By default, unresolved conflicts older occurred a long time ago. By default, unresolved conflicts older
than 15 days and resolved conflicts older than 60 than 15 days and resolved conflicts older than 60
days are pruned. These defaults are controlled via the days are pruned. These defaults are controlled via the
`gc.rerereunresolved` and `gc.rerereresolved` configuration `gc.rerereUnresolved` and `gc.rerereResolved` configuration
variables respectively. variables respectively.
......
...@@ -47,7 +47,7 @@ Composing ...@@ -47,7 +47,7 @@ Composing
--annotate:: --annotate::
Review and edit each patch you're about to send. Default is the value Review and edit each patch you're about to send. Default is the value
of 'sendemail.annotate'. See the CONFIGURATION section for of 'sendemail.annotate'. See the CONFIGURATION section for
'sendemail.multiedit'. 'sendemail.multiEdit'.
--bcc=<address>:: --bcc=<address>::
Specify a "Bcc:" value for each email. Default is the value of Specify a "Bcc:" value for each email. Default is the value of
...@@ -73,7 +73,7 @@ and In-Reply-To headers will be used unless they are removed. ...@@ -73,7 +73,7 @@ and In-Reply-To headers will be used unless they are removed.
+ +
Missing From or In-Reply-To headers will be prompted for. Missing From or In-Reply-To headers will be prompted for.
+ +
See the CONFIGURATION section for 'sendemail.multiedit'. See the CONFIGURATION section for 'sendemail.multiEdit'.
--from=<address>:: --from=<address>::
Specify the sender of the emails. If not specified on the command line, Specify the sender of the emails. If not specified on the command line,
...@@ -156,31 +156,31 @@ Sending ...@@ -156,31 +156,31 @@ Sending
subscribed to a list. In order to use the 'From' address, set the subscribed to a list. In order to use the 'From' address, set the
value to "auto". If you use the sendmail binary, you must have value to "auto". If you use the sendmail binary, you must have
suitable privileges for the -f parameter. Default is the value of the suitable privileges for the -f parameter. Default is the value of the
'sendemail.envelopesender' configuration variable; if that is 'sendemail.envelopeSender' configuration variable; if that is
unspecified, choosing the envelope sender is left to your MTA. unspecified, choosing the envelope sender is left to your MTA.
--smtp-encryption=<encryption>:: --smtp-encryption=<encryption>::
Specify the encryption to use, either 'ssl' or 'tls'. Any other Specify the encryption to use, either 'ssl' or 'tls'. Any other
value reverts to plain SMTP. Default is the value of value reverts to plain SMTP. Default is the value of
'sendemail.smtpencryption'. 'sendemail.smtpEncryption'.
--smtp-domain=<FQDN>:: --smtp-domain=<FQDN>::
Specifies the Fully Qualified Domain Name (FQDN) used in the Specifies the Fully Qualified Domain Name (FQDN) used in the
HELO/EHLO command to the SMTP server. Some servers require the HELO/EHLO command to the SMTP server. Some servers require the
FQDN to match your IP address. If not set, git send-email attempts FQDN to match your IP address. If not set, git send-email attempts
to determine your FQDN automatically. Default is the value of to determine your FQDN automatically. Default is the value of
'sendemail.smtpdomain'. 'sendemail.smtpDomain'.
--smtp-pass[=<password>]:: --smtp-pass[=<password>]::
Password for SMTP-AUTH. The argument is optional: If no Password for SMTP-AUTH. The argument is optional: If no
argument is specified, then the empty string is used as argument is specified, then the empty string is used as
the password. Default is the value of 'sendemail.smtppass', the password. Default is the value of 'sendemail.smtpPass',
however '--smtp-pass' always overrides this value. however '--smtp-pass' always overrides this value.
+ +
Furthermore, passwords need not be specified in configuration files Furthermore, passwords need not be specified in configuration files
or on the command line. If a username has been specified (with or on the command line. If a username has been specified (with
'--smtp-user' or a 'sendemail.smtpuser'), but no password has been '--smtp-user' or a 'sendemail.smtpUser'), but no password has been
specified (with '--smtp-pass' or 'sendemail.smtppass'), then specified (with '--smtp-pass' or 'sendemail.smtpPass'), then
a password is obtained using 'git-credential'. a password is obtained using 'git-credential'.
--smtp-server=<host>:: --smtp-server=<host>::
...@@ -188,7 +188,7 @@ a password is obtained using 'git-credential'. ...@@ -188,7 +188,7 @@ a password is obtained using 'git-credential'.
`smtp.example.com` or a raw IP address). Alternatively it can `smtp.example.com` or a raw IP address). Alternatively it can
specify a full pathname of a sendmail-like program instead; specify a full pathname of a sendmail-like program instead;
the program must support the `-i` option. Default value can the program must support the `-i` option. Default value can
be specified by the 'sendemail.smtpserver' configuration be specified by the 'sendemail.smtpServer' configuration
option; the built-in default is `/usr/sbin/sendmail` or option; the built-in default is `/usr/sbin/sendmail` or
`/usr/lib/sendmail` if such program is available, or `/usr/lib/sendmail` if such program is available, or
`localhost` otherwise. `localhost` otherwise.
...@@ -199,11 +199,11 @@ a password is obtained using 'git-credential'. ...@@ -199,11 +199,11 @@ a password is obtained using 'git-credential'.
submission port 587, or the common SSL smtp port 465); submission port 587, or the common SSL smtp port 465);
symbolic port names (e.g. "submission" instead of 587) symbolic port names (e.g. "submission" instead of 587)
are also accepted. The port can also be set with the are also accepted. The port can also be set with the
'sendemail.smtpserverport' configuration variable. 'sendemail.smtpServerPort' configuration variable.
--smtp-server-option=<option>:: --smtp-server-option=<option>::
If set, specifies the outgoing SMTP server option to use. If set, specifies the outgoing SMTP server option to use.
Default value can be specified by the 'sendemail.smtpserveroption' Default value can be specified by the 'sendemail.smtpServerOption'
configuration option. configuration option.
+ +
The --smtp-server-option option must be repeated for each option you want The --smtp-server-option option must be repeated for each option you want
...@@ -225,8 +225,8 @@ must be used for each option. ...@@ -225,8 +225,8 @@ must be used for each option.
be the best choice on most platforms). be the best choice on most platforms).
--smtp-user=<user>:: --smtp-user=<user>::
Username for SMTP-AUTH. Default is the value of 'sendemail.smtpuser'; Username for SMTP-AUTH. Default is the value of 'sendemail.smtpUser';
if a username is not specified (with '--smtp-user' or 'sendemail.smtpuser'), if a username is not specified (with '--smtp-user' or 'sendemail.smtpUser'),
then authentication is not attempted. then authentication is not attempted.
--smtp-debug=0|1:: --smtp-debug=0|1::
...@@ -247,14 +247,14 @@ Automating ...@@ -247,14 +247,14 @@ Automating
Specify a command to execute once per patch file which Specify a command to execute once per patch file which
should generate patch file specific "Cc:" entries. should generate patch file specific "Cc:" entries.
Output of this command must be single email address per line. Output of this command must be single email address per line.
Default is the value of 'sendemail.cccmd' configuration value. Default is the value of 'sendemail.ccCmd' configuration value.
--[no-]chain-reply-to:: --[no-]chain-reply-to::
If this is set, each email will be sent as a reply to the previous If this is set, each email will be sent as a reply to the previous
email sent. If disabled with "--no-chain-reply-to", all emails after email sent. If disabled with "--no-chain-reply-to", all emails after
the first will be sent as replies to the first email sent. When using the first will be sent as replies to the first email sent. When using
this, it is recommended that the first file given be an overview of the this, it is recommended that the first file given be an overview of the
entire patch series. Disabled by default, but the 'sendemail.chainreplyto' entire patch series. Disabled by default, but the 'sendemail.chainReplyTo'
configuration variable can be used to enable it. configuration variable can be used to enable it.
--identity=<identity>:: --identity=<identity>::
...@@ -304,7 +304,7 @@ specified, as well as 'body' if --no-signed-off-cc is specified. ...@@ -304,7 +304,7 @@ specified, as well as 'body' if --no-signed-off-cc is specified.
--[no-]suppress-from:: --[no-]suppress-from::
If this is set, do not add the From: address to the cc: list. If this is set, do not add the From: address to the cc: list.
Default is the value of 'sendemail.suppressfrom' configuration Default is the value of 'sendemail.suppressFrom' configuration
value; if that is unspecified, default to --no-suppress-from. value; if that is unspecified, default to --no-suppress-from.
--[no-]thread:: --[no-]thread::
...@@ -377,15 +377,15 @@ default to '--validate'. ...@@ -377,15 +377,15 @@ default to '--validate'.
CONFIGURATION CONFIGURATION
------------- -------------
sendemail.aliasesfile:: sendemail.aliasesFile::
To avoid typing long email addresses, point this to one or more To avoid typing long email addresses, point this to one or more
email aliases files. You must also supply 'sendemail.aliasfiletype'. email aliases files. You must also supply 'sendemail.aliasFileType'.
sendemail.aliasfiletype:: sendemail.aliasFileType::
Format of the file(s) specified in sendemail.aliasesfile. Must be Format of the file(s) specified in sendemail.aliasesFile. Must be
one of 'mutt', 'mailrc', 'pine', 'elm', or 'gnus'. one of 'mutt', 'mailrc', 'pine', 'elm', or 'gnus'.
sendemail.multiedit:: sendemail.multiEdit::
If true (default), a single editor instance will be spawned to edit If true (default), a single editor instance will be spawned to edit
files you have to edit (patches when '--annotate' is used, and the files you have to edit (patches when '--annotate' is used, and the
summary when '--compose' is used). If false, files will be edited one summary when '--compose' is used). If false, files will be edited one
...@@ -404,10 +404,10 @@ To use 'git send-email' to send your patches through the GMail SMTP server, ...@@ -404,10 +404,10 @@ To use 'git send-email' to send your patches through the GMail SMTP server,
edit ~/.gitconfig to specify your account settings: edit ~/.gitconfig to specify your account settings:
[sendemail] [sendemail]
smtpencryption = tls smtpEncryption = tls
smtpserver = smtp.gmail.com smtpServer = smtp.gmail.com
smtpuser = yourname@gmail.com smtpUser = yourname@gmail.com
smtpserverport = 587 smtpServerPort = 587
Once your commits are ready to be sent to the mailing list, run the Once your commits are ready to be sent to the mailing list, run the
following commands: following commands:
......
...@@ -77,7 +77,7 @@ configuration variable documented in linkgit:git-config[1]. ...@@ -77,7 +77,7 @@ configuration variable documented in linkgit:git-config[1].
only changes to the commits stored in the superproject are shown (this was only changes to the commits stored in the superproject are shown (this was
the behavior before 1.7.0). Using "all" hides all changes to submodules the behavior before 1.7.0). Using "all" hides all changes to submodules
(and suppresses the output of submodule summaries when the config option (and suppresses the output of submodule summaries when the config option
`status.submodulesummary` is set). `status.submoduleSummary` is set).
--ignored:: --ignored::
Show ignored files as well. Show ignored files as well.
...@@ -207,7 +207,7 @@ If the config variable `status.relativePaths` is set to false, then all ...@@ -207,7 +207,7 @@ If the config variable `status.relativePaths` is set to false, then all
paths shown are relative to the repository root, not to the current paths shown are relative to the repository root, not to the current
directory. directory.
If `status.submodulesummary` is set to a non zero number or true (identical If `status.submoduleSummary` is set to a non zero number or true (identical
to -1 or an unlimited number), the submodule summary will be enabled for to -1 or an unlimited number), the submodule summary will be enabled for
the long format and a summary of commits for modified submodules will be the long format and a summary of commits for modified submodules will be
shown (see --summary-limit option of linkgit:git-submodule[1]). Please note shown (see --summary-limit option of linkgit:git-submodule[1]). Please note
......
...@@ -161,7 +161,7 @@ it in the repository configuration as follows: ...@@ -161,7 +161,7 @@ it in the repository configuration as follows:
------------------------------------- -------------------------------------
[user] [user]
signingkey = <gpg-key-id> signingKey = <gpg-key-id>
------------------------------------- -------------------------------------
......
...@@ -918,7 +918,7 @@ for further details. ...@@ -918,7 +918,7 @@ for further details.
If this environment variable is set, then Git commands which need to If this environment variable is set, then Git commands which need to
acquire passwords or passphrases (e.g. for HTTP or IMAP authentication) acquire passwords or passphrases (e.g. for HTTP or IMAP authentication)
will call this program with a suitable prompt as command-line argument will call this program with a suitable prompt as command-line argument
and read the password from its STDOUT. See also the 'core.askpass' and read the password from its STDOUT. See also the 'core.askPass'
option in linkgit:git-config[1]. option in linkgit:git-config[1].
'GIT_TERMINAL_PROMPT':: 'GIT_TERMINAL_PROMPT'::
......
...@@ -80,7 +80,7 @@ Attributes which should be version-controlled and distributed to other ...@@ -80,7 +80,7 @@ Attributes which should be version-controlled and distributed to other
repositories (i.e., attributes of interest to all users) should go into repositories (i.e., attributes of interest to all users) should go into
`.gitattributes` files. Attributes that should affect all repositories `.gitattributes` files. Attributes that should affect all repositories
for a single user should be placed in a file specified by the for a single user should be placed in a file specified by the
`core.attributesfile` configuration option (see linkgit:git-config[1]). `core.attributesFile` configuration option (see linkgit:git-config[1]).
Its default value is $XDG_CONFIG_HOME/git/attributes. If $XDG_CONFIG_HOME Its default value is $XDG_CONFIG_HOME/git/attributes. If $XDG_CONFIG_HOME
is either not set or empty, $HOME/.config/git/attributes is used instead. is either not set or empty, $HOME/.config/git/attributes is used instead.
Attributes for all users on a system should be placed in the Attributes for all users on a system should be placed in the
......
...@@ -32,7 +32,7 @@ strategies to ask the user for usernames and passwords: ...@@ -32,7 +32,7 @@ strategies to ask the user for usernames and passwords:
to the program on the command line, and the user's input is read to the program on the command line, and the user's input is read
from its standard output. from its standard output.
2. Otherwise, if the `core.askpass` configuration variable is set, its 2. Otherwise, if the `core.askPass` configuration variable is set, its
value is used as above. value is used as above.
3. Otherwise, if the `SSH_ASKPASS` environment variable is set, its 3. Otherwise, if the `SSH_ASKPASS` environment variable is set, its
......
...@@ -38,7 +38,7 @@ precedence, the last matching pattern decides the outcome): ...@@ -38,7 +38,7 @@ precedence, the last matching pattern decides the outcome):
* Patterns read from `$GIT_DIR/info/exclude`. * Patterns read from `$GIT_DIR/info/exclude`.
* Patterns read from the file specified by the configuration * Patterns read from the file specified by the configuration
variable 'core.excludesfile'. variable 'core.excludesFile'.
Which file to place a pattern in depends on how the pattern is meant to Which file to place a pattern in depends on how the pattern is meant to
be used. be used.
...@@ -56,7 +56,7 @@ be used. ...@@ -56,7 +56,7 @@ be used.
* Patterns which a user wants Git to * Patterns which a user wants Git to
ignore in all situations (e.g., backup or temporary files generated by ignore in all situations (e.g., backup or temporary files generated by
the user's editor of choice) generally go into a file specified by the user's editor of choice) generally go into a file specified by
`core.excludesfile` in the user's `~/.gitconfig`. Its default value is `core.excludesFile` in the user's `~/.gitconfig`. Its default value is
$XDG_CONFIG_HOME/git/ignore. If $XDG_CONFIG_HOME is either not set or $XDG_CONFIG_HOME/git/ignore. If $XDG_CONFIG_HOME is either not set or
empty, $HOME/.config/git/ignore is used instead. empty, $HOME/.config/git/ignore is used instead.
......
...@@ -706,7 +706,7 @@ show-sizes:: ...@@ -706,7 +706,7 @@ show-sizes::
I/O. Enabled by default. I/O. Enabled by default.
+ +
This feature can be configured on a per-repository basis via This feature can be configured on a per-repository basis via
repository's `gitweb.showsizes` configuration variable (boolean). repository's `gitweb.showSizes` configuration variable (boolean).
patches:: patches::
Enable and configure "patches" view, which displays list of commits in email Enable and configure "patches" view, which displays list of commits in email
......
merge.conflictstyle:: merge.conflictStyle::
Specify the style in which conflicted hunks are written out to Specify the style in which conflicted hunks are written out to
working tree files upon merge. The default is "merge", which working tree files upon merge. The default is "merge", which
shows a `<<<<<<<` conflict marker, changes made by one side, shows a `<<<<<<<` conflict marker, changes made by one side,
......
...@@ -1200,7 +1200,7 @@ for other users who clone your repository. ...@@ -1200,7 +1200,7 @@ for other users who clone your repository.
If you wish the exclude patterns to affect only certain repositories If you wish the exclude patterns to affect only certain repositories
(instead of every repository for a given project), you may instead put (instead of every repository for a given project), you may instead put
them in a file in your repository named `.git/info/exclude`, or in any them in a file in your repository named `.git/info/exclude`, or in any
file specified by the `core.excludesfile` configuration variable. file specified by the `core.excludesFile` configuration variable.
Some Git commands can also take exclude patterns directly on the Some Git commands can also take exclude patterns directly on the
command line. See linkgit:gitignore[5] for the details. command line. See linkgit:gitignore[5] for the details.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册