mirror of
https://github.com/git/git.git
synced 2026-01-11 21:33:13 +09:00
Merge branch 'en/docfixes'
Documentation typo and grammo fixes. * en/docfixes: (25 commits) documentation: add missing parenthesis documentation: add missing quotes documentation: add missing fullstops documentation: add some commas where they are helpful documentation: fix whitespace issues documentation: fix capitalization documentation: fix punctuation documentation: use clearer prepositions documentation: add missing hyphens documentation: remove unnecessary hyphens documentation: add missing article documentation: fix choice of article documentation: whitespace is already generally plural documentation: fix singular vs. plural documentation: fix verb vs. noun documentation: fix adjective vs. noun documentation: fix verb tense documentation: employ consistent verb tense for a list documentation: fix subject/verb agreement documentation: remove extraneous words ...
This commit is contained in:
commit
d12166d3c8
@ -1,5 +1,5 @@
|
||||
Like other projects, we also have some guidelines to keep to the
|
||||
code. For Git in general, a few rough rules are:
|
||||
Like other projects, we also have some guidelines for our code. For
|
||||
Git in general, a few rough rules are:
|
||||
|
||||
- Most importantly, we never say "It's in POSIX; we'll happily
|
||||
ignore your needs should your system not conform to it."
|
||||
@ -40,7 +40,7 @@ As for more concrete guidelines, just imitate the existing code
|
||||
contributing to). It is always preferable to match the _local_
|
||||
convention. New code added to Git suite is expected to match
|
||||
the overall style of existing code. Modifications to existing
|
||||
code is expected to match the style the surrounding code already
|
||||
code are expected to match the style the surrounding code already
|
||||
uses (even if it doesn't match the overall style of existing code).
|
||||
|
||||
But if you must have a list of rules, here are some language
|
||||
|
||||
@ -19,7 +19,7 @@ Principles
|
||||
Selecting patch(es) to review
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
If you are looking for a patch series in need of review, start by checking
|
||||
latest "What's cooking in git.git" email
|
||||
the latest "What's cooking in git.git" email
|
||||
(https://lore.kernel.org/git/xmqqilm1yp3m.fsf@gitster.g/[example]). The "What's
|
||||
cooking" emails & replies can be found using the query `s:"What's cooking"` on
|
||||
the https://lore.kernel.org/git/[`lore.kernel.org` mailing list archive];
|
||||
@ -126,7 +126,7 @@ Terminology
|
||||
-----------
|
||||
nit: ::
|
||||
Denotes a small issue that should be fixed, such as a typographical error
|
||||
or mis-alignment of conditions in an `if()` statement.
|
||||
or misalignment of conditions in an `if()` statement.
|
||||
|
||||
aside: ::
|
||||
optional: ::
|
||||
|
||||
@ -87,7 +87,7 @@ maintainer.
|
||||
Under truly exceptional circumstances where you absolutely must depend
|
||||
on a select few topic branches that are already in `next` but not in
|
||||
`master`, you may want to create your own custom base-branch by forking
|
||||
`master` and merging the required topic branches to it. You could then
|
||||
`master` and merging the required topic branches into it. You could then
|
||||
work on top of this base-branch. But keep in mind that this base-branch
|
||||
would only be known privately to you. So when you are ready to send
|
||||
your patches to the list, be sure to communicate how you created it in
|
||||
|
||||
@ -5,7 +5,7 @@ Tools for developing Git
|
||||
[[summary]]
|
||||
== Summary
|
||||
|
||||
This document gathers tips, scripts and configuration file to help people
|
||||
This document gathers tips, scripts, and configuration files to help people
|
||||
working on Git's codebase use their favorite tools while following Git's
|
||||
coding style.
|
||||
|
||||
@ -32,7 +32,7 @@ information on using the script.
|
||||
|
||||
This is adapted from Linux's suggestion in its CodingStyle document:
|
||||
|
||||
- To follow rules of the CodingGuideline, it's useful to put the following in
|
||||
- To follow the rules in CodingGuidelines, it's useful to put the following in
|
||||
GIT_CHECKOUT/.dir-locals.el, assuming you use cperl-mode:
|
||||
----
|
||||
;; note the first part is useful for C editing, too
|
||||
|
||||
@ -11,7 +11,7 @@ file. The file `/etc/gitconfig` can be used to store a system-wide
|
||||
default configuration.
|
||||
|
||||
The configuration variables are used by both the Git plumbing
|
||||
and the porcelains. The variables are divided into sections, wherein
|
||||
and the porcelain commands. The variables are divided into sections, wherein
|
||||
the fully qualified variable name of the variable itself is the last
|
||||
dot-separated segment and the section name is everything before the last
|
||||
dot. The variable names are case-insensitive, allow only alphanumeric
|
||||
@ -103,7 +103,7 @@ was found. See below for examples.
|
||||
Conditional includes
|
||||
~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
You can include a config file from another conditionally by setting a
|
||||
You can conditionally include a config file from another by setting an
|
||||
`includeIf.<condition>.path` variable to the name of the file to be
|
||||
included.
|
||||
|
||||
@ -118,7 +118,7 @@ are:
|
||||
pattern, the include condition is met.
|
||||
+
|
||||
The .git location may be auto-discovered, or come from `$GIT_DIR`
|
||||
environment variable. If the repository is auto discovered via a .git
|
||||
environment variable. If the repository is auto-discovered via a .git
|
||||
file (e.g. from submodules, or a linked worktree), the .git location
|
||||
would be the final location where the .git directory is, not where the
|
||||
.git file is.
|
||||
|
||||
@ -5,7 +5,7 @@ advice.*::
|
||||
+
|
||||
--
|
||||
ambiguousFetchRefspec::
|
||||
Advice shown when fetch refspec for multiple remotes map to
|
||||
Advice shown when a fetch refspec for multiple remotes maps to
|
||||
the same remote-tracking branch namespace and causes branch
|
||||
tracking set-up to fail.
|
||||
fetchShowForcedUpdates::
|
||||
@ -63,7 +63,7 @@ advice.*::
|
||||
the template shown when writing commit messages in
|
||||
linkgit:git-commit[1], and in the help message shown
|
||||
by linkgit:git-switch[1] or
|
||||
linkgit:git-checkout[1] when switching branch.
|
||||
linkgit:git-checkout[1] when switching branches.
|
||||
statusUoption::
|
||||
Advise to consider using the `-u` option to linkgit:git-status[1]
|
||||
when the command takes more than 2 seconds to enumerate untracked
|
||||
@ -87,7 +87,7 @@ advice.*::
|
||||
detachedHead::
|
||||
Advice shown when you used
|
||||
linkgit:git-switch[1] or linkgit:git-checkout[1]
|
||||
to move to the detach HEAD state, to instruct how to
|
||||
to move to the detached HEAD state, to instruct how to
|
||||
create a local branch after the fact.
|
||||
suggestDetachingHead::
|
||||
Advice shown when linkgit:git-switch[1] refuses to detach HEAD
|
||||
@ -101,7 +101,7 @@ advice.*::
|
||||
otherwise caused a remote-tracking branch to be
|
||||
checked out. See the `checkout.defaultRemote`
|
||||
configuration variable for how to set a given remote
|
||||
to used by default in some situations where this
|
||||
to be used by default in some situations where this
|
||||
advice would be printed.
|
||||
amWorkDir::
|
||||
Advice that shows the location of the patch file when
|
||||
|
||||
@ -4,7 +4,7 @@ alias.*::
|
||||
`git last` is equivalent to `git cat-file commit HEAD`. To avoid
|
||||
confusion and troubles with script usage, aliases that
|
||||
hide existing Git commands are ignored. Arguments are split by
|
||||
spaces, the usual shell quoting and escaping is supported.
|
||||
spaces, the usual shell quoting and escaping are supported.
|
||||
A quote pair or a backslash can be used to quote them.
|
||||
+
|
||||
Note that the first word of an alias does not necessarily have to be a
|
||||
|
||||
@ -2,10 +2,10 @@ apply.ignoreWhitespace::
|
||||
When set to 'change', tells 'git apply' to ignore changes in
|
||||
whitespace, in the same way as the `--ignore-space-change`
|
||||
option.
|
||||
When set to one of: no, none, never, false tells 'git apply' to
|
||||
When set to one of: no, none, never, false, it tells 'git apply' to
|
||||
respect all whitespace differences.
|
||||
See linkgit:git-apply[1].
|
||||
|
||||
apply.whitespace::
|
||||
Tells 'git apply' how to handle whitespaces, in the same way
|
||||
Tells 'git apply' how to handle whitespace, in the same way
|
||||
as the `--whitespace` option. See linkgit:git-apply[1].
|
||||
|
||||
@ -36,7 +36,7 @@ branch.sort::
|
||||
|
||||
branch.<name>.remote::
|
||||
When on branch <name>, it tells 'git fetch' and 'git push'
|
||||
which remote to fetch from/push to. The remote to push to
|
||||
which remote to fetch from or push to. The remote to push to
|
||||
may be overridden with `remote.pushDefault` (for all branches).
|
||||
The remote to push to, for the current branch, may be further
|
||||
overridden by `branch.<name>.pushRemote`. If no remote is
|
||||
@ -64,7 +64,7 @@ branch.<name>.merge::
|
||||
handled like the remote part of a refspec, and must match a
|
||||
ref which is fetched from the remote given by
|
||||
"branch.<name>.remote".
|
||||
The merge information is used by 'git pull' (which at first calls
|
||||
The merge information is used by 'git pull' (which first calls
|
||||
'git fetch') to lookup the default branch for merging. Without
|
||||
this option, 'git pull' defaults to merge the first refspec fetched.
|
||||
Specify multiple values to get an octopus merge.
|
||||
@ -99,5 +99,5 @@ for details).
|
||||
branch.<name>.description::
|
||||
Branch description, can be edited with
|
||||
`git branch --edit-description`. Branch description is
|
||||
automatically added in the format-patch cover letter or
|
||||
automatically added to the format-patch cover letter or
|
||||
request-pull summary.
|
||||
|
||||
@ -30,7 +30,7 @@ checkout.workers::
|
||||
all commands that perform checkout. E.g. checkout, clone, reset,
|
||||
sparse-checkout, etc.
|
||||
+
|
||||
Note: parallel checkout usually delivers better performance for repositories
|
||||
Note: Parallel checkout usually delivers better performance for repositories
|
||||
located on SSDs or over NFS. For repositories on spinning disks and/or machines
|
||||
with a small number of cores, the default sequential checkout often performs
|
||||
better. The size and compression level of a repository might also influence how
|
||||
@ -39,6 +39,6 @@ well the parallel version performs.
|
||||
checkout.thresholdForParallelism::
|
||||
When running parallel checkout with a small number of files, the cost
|
||||
of subprocess spawning and inter-process communication might outweigh
|
||||
the parallelization gains. This setting allows to define the minimum
|
||||
the parallelization gains. This setting allows you to define the minimum
|
||||
number of files for which parallel checkout should be attempted. The
|
||||
default is 100.
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
clean.requireForce::
|
||||
A boolean to make git-clean do nothing unless given -f,
|
||||
-i or -n. Defaults to true.
|
||||
-i, or -n. Defaults to true.
|
||||
|
||||
@ -4,8 +4,8 @@ clone.defaultRemoteName::
|
||||
option to linkgit:git-clone[1].
|
||||
|
||||
clone.rejectShallow::
|
||||
Reject to clone a repository if it is a shallow one, can be overridden by
|
||||
passing option `--reject-shallow` in command line. See linkgit:git-clone[1]
|
||||
Reject cloning a repository if it is a shallow one; this can be overridden by
|
||||
passing the `--reject-shallow` option on the command line. See linkgit:git-clone[1]
|
||||
|
||||
clone.filterSubmodules::
|
||||
If a partial clone filter is provided (see `--filter` in
|
||||
|
||||
@ -106,7 +106,7 @@ color.grep.<slot>::
|
||||
matching text in context lines
|
||||
`matchSelected`;;
|
||||
matching text in selected lines. Also, used to customize the following
|
||||
linkgit:git-log[1] subcommands: `--grep`, `--author` and `--committer`.
|
||||
linkgit:git-log[1] subcommands: `--grep`, `--author`, and `--committer`.
|
||||
`selected`;;
|
||||
non-matching text in selected lines. Also, used to customize the
|
||||
following linkgit:git-log[1] subcommands: `--grep`, `--author` and
|
||||
|
||||
@ -43,7 +43,7 @@ column.branch::
|
||||
See `column.ui` for details.
|
||||
|
||||
column.clean::
|
||||
Specify the layout when list items in `git clean -i`, which always
|
||||
Specify the layout when listing items in `git clean -i`, which always
|
||||
shows files and directories in columns. See `column.ui` for details.
|
||||
|
||||
column.status::
|
||||
@ -51,5 +51,5 @@ column.status::
|
||||
See `column.ui` for details.
|
||||
|
||||
column.tag::
|
||||
Specify whether to output tag listing in `git tag` in columns.
|
||||
Specify whether to output tag listings in `git tag` in columns.
|
||||
See `column.ui` for details.
|
||||
|
||||
@ -2,7 +2,7 @@ commit.cleanup::
|
||||
This setting overrides the default of the `--cleanup` option in
|
||||
`git commit`. See linkgit:git-commit[1] for details. Changing the
|
||||
default can be useful when you always want to keep lines that begin
|
||||
with comment character `#` in your log message, in which case you
|
||||
with the comment character `#` in your log message, in which case you
|
||||
would do `git config commit.cleanup whitespace` (note that you will
|
||||
have to remove the help lines that begin with `#` in the commit log
|
||||
template yourself, if you do this).
|
||||
@ -25,5 +25,5 @@ commit.template::
|
||||
new commit messages.
|
||||
|
||||
commit.verbose::
|
||||
A boolean or int to specify the level of verbose with `git commit`.
|
||||
A boolean or int to specify the level of verbosity with `git commit`.
|
||||
See linkgit:git-commit[1].
|
||||
|
||||
@ -21,7 +21,7 @@ credential.username::
|
||||
|
||||
credential.<url>.*::
|
||||
Any of the credential.* options above can be applied selectively to
|
||||
some credentials. For example "credential.https://example.com.username"
|
||||
some credentials. For example, "credential.https://example.com.username"
|
||||
would set the default username only for https connections to
|
||||
example.com. See linkgit:gitcredentials[7] for details on how URLs are
|
||||
matched.
|
||||
@ -31,6 +31,6 @@ credentialCache.ignoreSIGHUP::
|
||||
|
||||
credentialStore.lockTimeoutMS::
|
||||
The length of time, in milliseconds, for git-credential-store to retry
|
||||
when trying to lock the credentials file. Value 0 means not to retry at
|
||||
when trying to lock the credentials file. A value of 0 means not to retry at
|
||||
all; -1 means to try indefinitely. Default is 1000 (i.e., retry for
|
||||
1s).
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
diff.autoRefreshIndex::
|
||||
When using 'git diff' to compare with work tree
|
||||
files, do not consider stat-only change as changed.
|
||||
files, do not consider stat-only changes as changed.
|
||||
Instead, silently run `git update-index --refresh` to
|
||||
update the cached stat information for paths whose
|
||||
contents in the work tree match the contents in the
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
fastimport.unpackLimit::
|
||||
If the number of objects imported by linkgit:git-fast-import[1]
|
||||
is below this limit, then the objects will be unpacked into
|
||||
loose object files. However if the number of imported objects
|
||||
equals or exceeds this limit then the pack will be stored as a
|
||||
loose object files. However, if the number of imported objects
|
||||
equals or exceeds this limit, then the pack will be stored as a
|
||||
pack. Storing the pack from a fast-import can make the import
|
||||
operation complete faster, especially on slow filesystems. If
|
||||
not set, the value of `transfer.unpackLimit` is used instead.
|
||||
|
||||
@ -52,8 +52,8 @@ fetch.pruneTags::
|
||||
|
||||
fetch.output::
|
||||
Control how ref update status is printed. Valid values are
|
||||
`full` and `compact`. Default value is `full`. See section
|
||||
OUTPUT in linkgit:git-fetch[1] for detail.
|
||||
`full` and `compact`. Default value is `full`. See the
|
||||
OUTPUT section in linkgit:git-fetch[1] for details.
|
||||
|
||||
fetch.negotiationAlgorithm::
|
||||
Control how information about the commits in the local repository
|
||||
|
||||
@ -68,7 +68,7 @@ format.encodeEmailHeaders::
|
||||
Defaults to true.
|
||||
|
||||
format.pretty::
|
||||
The default pretty format for log/show/whatchanged command,
|
||||
The default pretty format for log/show/whatchanged command.
|
||||
See linkgit:git-log[1], linkgit:git-show[1],
|
||||
linkgit:git-whatchanged[1].
|
||||
|
||||
|
||||
@ -11,13 +11,13 @@ to clone or fetch it set `fetch.fsck.<msg-id>`.
|
||||
+
|
||||
The rest of the documentation discusses `fsck.*` for brevity, but the
|
||||
same applies for the corresponding `receive.fsck.*` and
|
||||
`fetch.<msg-id>.*`. variables.
|
||||
`fetch.fsck.*`. variables.
|
||||
+
|
||||
Unlike variables like `color.ui` and `core.editor` the
|
||||
Unlike variables like `color.ui` and `core.editor`, the
|
||||
`receive.fsck.<msg-id>` and `fetch.fsck.<msg-id>` variables will not
|
||||
fall back on the `fsck.<msg-id>` configuration if they aren't set. To
|
||||
uniformly configure the same fsck settings in different circumstances
|
||||
all three of them they must all set to the same values.
|
||||
uniformly configure the same fsck settings in different circumstances,
|
||||
all three of them must be set to the same values.
|
||||
+
|
||||
When `fsck.<msg-id>` is set, errors can be switched to warnings and
|
||||
vice versa by configuring the `fsck.<msg-id>` setting where the
|
||||
@ -36,19 +36,19 @@ Setting an unknown `fsck.<msg-id>` value will cause fsck to die, but
|
||||
doing the same for `receive.fsck.<msg-id>` and `fetch.fsck.<msg-id>`
|
||||
will only cause git to warn.
|
||||
+
|
||||
See `Fsck Messages` section of linkgit:git-fsck[1] for supported
|
||||
See the `Fsck Messages` section of linkgit:git-fsck[1] for supported
|
||||
values of `<msg-id>`.
|
||||
|
||||
|
||||
fsck.skipList::
|
||||
The path to a list of object names (i.e. one unabbreviated SHA-1 per
|
||||
line) that are known to be broken in a non-fatal way and should
|
||||
be ignored. On versions of Git 2.20 and later comments ('#'), empty
|
||||
lines, and any leading and trailing whitespace is ignored. Everything
|
||||
be ignored. On versions of Git 2.20 and later, comments ('#'), empty
|
||||
lines, and any leading and trailing whitespace are ignored. Everything
|
||||
but a SHA-1 per line will error out on older versions.
|
||||
+
|
||||
This feature is useful when an established project should be accepted
|
||||
despite early commits containing errors that can be safely ignored
|
||||
despite early commits containing errors that can be safely ignored,
|
||||
such as invalid committer email addresses. Note: corrupt objects
|
||||
cannot be skipped with this setting.
|
||||
+
|
||||
@ -58,11 +58,11 @@ Like `fsck.<msg-id>` this variable has corresponding
|
||||
Unlike variables like `color.ui` and `core.editor` the
|
||||
`receive.fsck.skipList` and `fetch.fsck.skipList` variables will not
|
||||
fall back on the `fsck.skipList` configuration if they aren't set. To
|
||||
uniformly configure the same fsck settings in different circumstances
|
||||
all three of them they must all set to the same values.
|
||||
uniformly configure the same fsck settings in different circumstances,
|
||||
all three of them must be set to the same values.
|
||||
+
|
||||
Older versions of Git (before 2.20) documented that the object names
|
||||
list should be sorted. This was never a requirement, the object names
|
||||
list should be sorted. This was never a requirement; the object names
|
||||
could appear in any order, but when reading the list we tracked whether
|
||||
the list was sorted for the purposes of an internal binary search
|
||||
implementation, which could save itself some work with an already sorted
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
fsmonitor.allowRemote::
|
||||
By default, the fsmonitor daemon refuses to work against network-mounted
|
||||
By default, the fsmonitor daemon refuses to work with network-mounted
|
||||
repositories. Setting `fsmonitor.allowRemote` to `true` overrides this
|
||||
behavior. Only respected when `core.fsmonitor` is set to `true`.
|
||||
|
||||
|
||||
@ -24,7 +24,7 @@ gc.auto::
|
||||
default value is 6700.
|
||||
+
|
||||
Setting this to 0 disables not only automatic packing based on the
|
||||
number of loose objects, but any other heuristic `git gc --auto` will
|
||||
number of loose objects, but also any other heuristic `git gc --auto` will
|
||||
otherwise use to determine if there's work to do, such as
|
||||
`gc.autoPackLimit`.
|
||||
|
||||
@ -39,7 +39,7 @@ See the `gc.bigPackThreshold` configuration variable below. When in
|
||||
use, it'll affect how the auto pack limit works.
|
||||
|
||||
gc.autoDetach::
|
||||
Make `git gc --auto` return immediately and run in background
|
||||
Make `git gc --auto` return immediately and run in the background
|
||||
if the system supports it. Default is true.
|
||||
|
||||
gc.bigPackThreshold::
|
||||
|
||||
@ -4,7 +4,7 @@ gpg.program::
|
||||
same command-line interface as GPG, namely, to verify a detached
|
||||
signature, "`gpg --verify $signature - <$file`" is run, and the
|
||||
program is expected to signal a good signature by exiting with
|
||||
code 0, and to generate an ASCII-armored detached signature, the
|
||||
code 0. To generate an ASCII-armored detached signature, the
|
||||
standard input of "`gpg -bsau $key`" is fed with the contents to be
|
||||
signed, and the program is expected to send the result to its
|
||||
standard output.
|
||||
@ -25,7 +25,7 @@ gpg.<format>.program::
|
||||
gpg.minTrustLevel::
|
||||
Specifies a minimum trust level for signature verification. If
|
||||
this option is unset, then signature verification for merge
|
||||
operations require a key with at least `marginal` trust. Other
|
||||
operations requires a key with at least `marginal` trust. Other
|
||||
operations that perform signature verification require a key
|
||||
with at least `undefined` trust. Setting this option overrides
|
||||
the required trust-level for all operations. Supported values,
|
||||
@ -38,7 +38,7 @@ gpg.minTrustLevel::
|
||||
* `ultimate`
|
||||
|
||||
gpg.ssh.defaultKeyCommand::
|
||||
This command that will be run when user.signingkey is not set and a ssh
|
||||
This command will be run when user.signingkey is not set and a ssh
|
||||
signature is requested. On successful exit a valid ssh public key
|
||||
prefixed with `key::` is expected in the first line of its output.
|
||||
This allows for a script doing a dynamic lookup of the correct public
|
||||
|
||||
@ -24,7 +24,7 @@ gui.matchTrackingBranch::
|
||||
not. Default: "false".
|
||||
|
||||
gui.newBranchTemplate::
|
||||
Is used as suggested name when creating new branches using the
|
||||
Is used as a suggested name when creating new branches using the
|
||||
linkgit:git-gui[1].
|
||||
|
||||
gui.pruneDuringFetch::
|
||||
|
||||
@ -254,13 +254,13 @@ http.lowSpeedLimit, http.lowSpeedTime::
|
||||
|
||||
http.noEPSV::
|
||||
A boolean which disables using of EPSV ftp command by curl.
|
||||
This can helpful with some "poor" ftp servers which don't
|
||||
This can be helpful with some "poor" ftp servers which don't
|
||||
support EPSV mode. Can be overridden by the `GIT_CURL_FTP_NO_EPSV`
|
||||
environment variable. Default is false (curl will use EPSV).
|
||||
|
||||
http.userAgent::
|
||||
The HTTP USER_AGENT string presented to an HTTP server. The default
|
||||
value represents the version of the client Git such as git/1.7.1.
|
||||
value represents the version of the Git client such as git/1.7.1.
|
||||
This option allows you to override this value to a more common value
|
||||
such as Mozilla/4.0. This may be necessary, for instance, if
|
||||
connecting through a firewall that restricts HTTP connections to a set
|
||||
|
||||
@ -2,7 +2,7 @@ i18n.commitEncoding::
|
||||
Character encoding the commit messages are stored in; Git itself
|
||||
does not care per se, but this information is necessary e.g. when
|
||||
importing commits from emails or in the gitk graphical history
|
||||
browser (and possibly at other places in the future or in other
|
||||
browser (and possibly in other places in the future or in other
|
||||
porcelains). See e.g. linkgit:git-mailinfo[1]. Defaults to 'utf-8'.
|
||||
|
||||
i18n.logOutputEncoding::
|
||||
|
||||
@ -4,7 +4,7 @@ imap.folder::
|
||||
"[Gmail]/Drafts". Required.
|
||||
|
||||
imap.tunnel::
|
||||
Command used to setup a tunnel to the IMAP server through which
|
||||
Command used to set up a tunnel to the IMAP server through which
|
||||
commands will be piped instead of using a direct network connection
|
||||
to the server. Required when imap.host is not set.
|
||||
|
||||
@ -37,7 +37,7 @@ imap.preformattedHTML::
|
||||
format=fixed email. Default is `false`.
|
||||
|
||||
imap.authMethod::
|
||||
Specify authenticate method for authentication with IMAP server.
|
||||
Specify the authentication method for authenticating with the IMAP server.
|
||||
If Git was built with the NO_CURL option, or if your curl version is older
|
||||
than 7.34.0, or if you're running git-imap-send with the `--no-curl`
|
||||
option, the only supported method is 'CRAM-MD5'. If this is not set
|
||||
|
||||
@ -23,7 +23,7 @@ index.threads::
|
||||
Specifies the number of threads to spawn when loading the index.
|
||||
This is meant to reduce index load time on multiprocessor machines.
|
||||
Specifying 0 or 'true' will cause Git to auto-detect the number of
|
||||
CPU's and set the number of threads accordingly. Specifying 1 or
|
||||
CPUs and set the number of threads accordingly. Specifying 1 or
|
||||
'false' will disable multithreading. Defaults to 'true'.
|
||||
|
||||
index.version::
|
||||
|
||||
@ -9,7 +9,7 @@ log.date::
|
||||
`--date` option. See linkgit:git-log[1] for details.
|
||||
+
|
||||
If the format is set to "auto:foo" and the pager is in use, format
|
||||
"foo" will be the used for the date format. Otherwise "default" will
|
||||
"foo" will be used for the date format. Otherwise, "default" will
|
||||
be used.
|
||||
|
||||
log.decorate::
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
mailinfo.scissors::
|
||||
If true, makes linkgit:git-mailinfo[1] (and therefore
|
||||
linkgit:git-am[1]) act by default as if the --scissors option
|
||||
was provided on the command-line. When active, this features
|
||||
was provided on the command-line. When active, this feature
|
||||
removes everything from the message body before a scissors
|
||||
line (i.e. consisting mainly of ">8", "8<" and "-").
|
||||
|
||||
@ -12,7 +12,7 @@ maintenance.strategy::
|
||||
then that value is used instead of the one provided by
|
||||
`maintenance.strategy`. The possible strategy strings are:
|
||||
+
|
||||
* `none`: This default setting implies no task are run at any schedule.
|
||||
* `none`: This default setting implies no tasks are run at any schedule.
|
||||
* `incremental`: This setting optimizes for performing small maintenance
|
||||
activities that do not delete any data. This does not schedule the `gc`
|
||||
task, but runs the `prefetch` and `commit-graph` tasks hourly, the
|
||||
|
||||
@ -5,7 +5,7 @@ man.viewer::
|
||||
man.<tool>.cmd::
|
||||
Specify the command to invoke the specified man viewer. The
|
||||
specified command is evaluated in shell with the man page
|
||||
passed as argument. (See linkgit:git-help[1].)
|
||||
passed as an argument. (See linkgit:git-help[1].)
|
||||
|
||||
man.<tool>.path::
|
||||
Override the path for the given tool that may be used to
|
||||
|
||||
@ -7,7 +7,7 @@ merge.conflictStyle::
|
||||
marker and the original text before the `=======` marker. The
|
||||
"merge" style tends to produce smaller conflict regions than diff3,
|
||||
both because of the exclusion of the original text, and because
|
||||
when a subset of lines match on the two sides they are just pulled
|
||||
when a subset of lines match on the two sides, they are just pulled
|
||||
out of the conflict region. Another alternate style, "zdiff3", is
|
||||
similar to diff3 but removes matching lines on the two sides from
|
||||
the conflict region when those matching lines appear near either
|
||||
|
||||
@ -22,8 +22,8 @@ mergetool.<tool>.trustExitCode::
|
||||
For a custom merge command, specify whether the exit code of
|
||||
the merge command can be used to determine whether the merge was
|
||||
successful. If this is not set to true then the merge target file
|
||||
timestamp is checked and the merge assumed to have been successful
|
||||
if the file has been updated, otherwise the user is prompted to
|
||||
timestamp is checked, and the merge is assumed to have been successful
|
||||
if the file has been updated; otherwise, the user is prompted to
|
||||
indicate the success of the merge.
|
||||
|
||||
mergetool.meld.hasOutput::
|
||||
@ -37,7 +37,7 @@ mergetool.meld.hasOutput::
|
||||
|
||||
mergetool.meld.useAutoMerge::
|
||||
When the `--auto-merge` is given, meld will merge all non-conflicting
|
||||
parts automatically, highlight the conflicting parts and wait for
|
||||
parts automatically, highlight the conflicting parts, and wait for
|
||||
user decision. Setting `mergetool.meld.useAutoMerge` to `true` tells
|
||||
Git to unconditionally use the `--auto-merge` option with `meld`.
|
||||
Setting this value to `auto` makes git detect whether `--auto-merge`
|
||||
@ -47,7 +47,7 @@ mergetool.meld.useAutoMerge::
|
||||
|
||||
mergetool.vimdiff.layout::
|
||||
The vimdiff backend uses this variable to control how its split
|
||||
windows look like. Applies even if you are using Neovim (`nvim`) or
|
||||
windows appear. Applies even if you are using Neovim (`nvim`) or
|
||||
gVim (`gvim`) as the merge tool. See BACKEND SPECIFIC HINTS section
|
||||
ifndef::git-mergetool[]
|
||||
in linkgit:git-mergetool[1].
|
||||
@ -55,7 +55,7 @@ endif::[]
|
||||
for details.
|
||||
|
||||
mergetool.hideResolved::
|
||||
During a merge Git will automatically resolve as many conflicts as
|
||||
During a merge, Git will automatically resolve as many conflicts as
|
||||
possible and write the 'MERGED' file containing conflict markers around
|
||||
any conflicts that it cannot resolve; 'LOCAL' and 'REMOTE' normally
|
||||
represent the versions of the file from before Git's conflict
|
||||
@ -74,7 +74,7 @@ mergetool.keepTemporaries::
|
||||
When invoking a custom merge tool, Git uses a set of temporary
|
||||
files to pass to the tool. If the tool returns an error and this
|
||||
variable is set to `true`, then these temporary files will be
|
||||
preserved, otherwise they will be removed after the tool has
|
||||
preserved; otherwise, they will be removed after the tool has
|
||||
exited. Defaults to `false`.
|
||||
|
||||
mergetool.writeToTemp::
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
notes.mergeStrategy::
|
||||
Which merge strategy to choose by default when resolving notes
|
||||
conflicts. Must be one of `manual`, `ours`, `theirs`, `union`, or
|
||||
`cat_sort_uniq`. Defaults to `manual`. See "NOTES MERGE STRATEGIES"
|
||||
`cat_sort_uniq`. Defaults to `manual`. See the "NOTES MERGE STRATEGIES"
|
||||
section of linkgit:git-notes[1] for more information on each strategy.
|
||||
+
|
||||
This setting can be overridden by passing the `--strategy` option to
|
||||
|
||||
@ -74,7 +74,7 @@ pack.threads::
|
||||
warning. This is meant to reduce packing time on multiprocessor
|
||||
machines. The required amount of memory for the delta search window
|
||||
is however multiplied by the number of threads.
|
||||
Specifying 0 will cause Git to auto-detect the number of CPU's
|
||||
Specifying 0 will cause Git to auto-detect the number of CPUs
|
||||
and set the number of threads accordingly.
|
||||
|
||||
pack.indexVersion::
|
||||
@ -83,11 +83,11 @@ pack.indexVersion::
|
||||
the new pack index with capabilities for packs larger than 4 GB
|
||||
as well as proper protection against the repacking of corrupted
|
||||
packs. Version 2 is the default. Note that version 2 is enforced
|
||||
and this config option ignored whenever the corresponding pack is
|
||||
and this config option is ignored whenever the corresponding pack is
|
||||
larger than 2 GB.
|
||||
+
|
||||
If you have an old Git that does not understand the version 2 `*.idx` file,
|
||||
cloning or fetching over a non native protocol (e.g. "http")
|
||||
cloning or fetching over a non-native protocol (e.g. "http")
|
||||
that will copy both `*.pack` file and corresponding `*.idx` file from the
|
||||
other side may give you a repository that cannot be accessed with your
|
||||
older version of Git. If the `*.pack` file is smaller than 2 GB, however,
|
||||
@ -102,8 +102,8 @@ pack.packSizeLimit::
|
||||
in the creation of multiple packfiles.
|
||||
+
|
||||
Note that this option is rarely useful, and may result in a larger total
|
||||
on-disk size (because Git will not store deltas between packs), as well
|
||||
as worse runtime performance (object lookup within multiple packs is
|
||||
on-disk size (because Git will not store deltas between packs) and
|
||||
worse runtime performance (object lookup within multiple packs is
|
||||
slower than a single pack, and optimizations like reachability bitmaps
|
||||
cannot cope with multiple packs).
|
||||
+
|
||||
|
||||
@ -35,7 +35,7 @@ push.default::
|
||||
|
||||
* `tracking` - This is a deprecated synonym for `upstream`.
|
||||
|
||||
* `simple` - pushes the current branch with the same name on the remote.
|
||||
* `simple` - push the current branch with the same name on the remote.
|
||||
+
|
||||
If you are working on a centralized workflow (pushing to the same repository you
|
||||
pull from, which is typically `origin`), then you need to configure an upstream
|
||||
@ -67,7 +67,7 @@ new default).
|
||||
--
|
||||
|
||||
push.followTags::
|
||||
If set to true enable `--follow-tags` option by default. You
|
||||
If set to true, enable `--follow-tags` option by default. You
|
||||
may override this configuration at time of push by specifying
|
||||
`--no-follow-tags`.
|
||||
|
||||
|
||||
@ -14,12 +14,12 @@ receive.autogc::
|
||||
|
||||
receive.certNonceSeed::
|
||||
By setting this variable to a string, `git receive-pack`
|
||||
will accept a `git push --signed` and verifies it by using
|
||||
will accept a `git push --signed` and verify it by using
|
||||
a "nonce" protected by HMAC using this string as a secret
|
||||
key.
|
||||
|
||||
receive.certNonceSlop::
|
||||
When a `git push --signed` sent a push certificate with a
|
||||
When a `git push --signed` sends a push certificate with a
|
||||
"nonce" that was issued by a receive-pack serving the same
|
||||
repository within this many seconds, export the "nonce"
|
||||
found in the certificate to `GIT_PUSH_CERT_NONCE` to the
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
rerere.autoUpdate::
|
||||
When set to true, `git-rerere` updates the index with the
|
||||
resulting contents after it cleanly resolves conflicts using
|
||||
previously recorded resolution. Defaults to false.
|
||||
previously recorded resolutions. Defaults to false.
|
||||
|
||||
rerere.enabled::
|
||||
Activate recording of resolved conflicts, so that identical
|
||||
|
||||
@ -14,7 +14,7 @@ repository that contains a bare repository and running a Git command
|
||||
within that directory.
|
||||
+
|
||||
This config setting is only respected in protected configuration (see
|
||||
<<SCOPES>>). This prevents the untrusted repository from tampering with
|
||||
<<SCOPES>>). This prevents untrusted repositories from tampering with
|
||||
this value.
|
||||
|
||||
safe.directory::
|
||||
@ -32,7 +32,7 @@ override any such directories specified in the system config), add a
|
||||
`safe.directory` entry with an empty value.
|
||||
+
|
||||
This config setting is only respected in protected configuration (see
|
||||
<<SCOPES>>). This prevents the untrusted repository from tampering with this
|
||||
<<SCOPES>>). This prevents untrusted repositories from tampering with this
|
||||
value.
|
||||
+
|
||||
The value of this setting is interpolated, i.e. `~/<path>` expands to a
|
||||
|
||||
@ -36,7 +36,7 @@ sendemail.aliasesFile::
|
||||
|
||||
sendemail.aliasFileType::
|
||||
Format of the file(s) specified in sendemail.aliasesFile. Must be
|
||||
one of 'mutt', 'mailrc', 'pine', 'elm', or 'gnus', or 'sendmail'.
|
||||
one of 'mutt', 'mailrc', 'pine', 'elm', 'gnus', or 'sendmail'.
|
||||
+
|
||||
What an alias file in each format looks like can be found in
|
||||
the documentation of the email program of the same name. The
|
||||
@ -91,7 +91,7 @@ sendemail.smtpBatchSize::
|
||||
See also the `--batch-size` option of linkgit:git-send-email[1].
|
||||
|
||||
sendemail.smtpReloginDelay::
|
||||
Seconds wait before reconnecting to smtp server.
|
||||
Seconds to wait before reconnecting to the smtp server.
|
||||
See also the `--relogin-delay` option of linkgit:git-send-email[1].
|
||||
|
||||
sendemail.forbidSendmailVariables::
|
||||
|
||||
@ -2,4 +2,4 @@ sequence.editor::
|
||||
Text editor used by `git rebase -i` for editing the rebase instruction file.
|
||||
The value is meant to be interpreted by the shell when it is used.
|
||||
It can be overridden by the `GIT_SEQUENCE_EDITOR` environment variable.
|
||||
When not configured the default commit message editor is used instead.
|
||||
When not configured, the default commit message editor is used instead.
|
||||
|
||||
@ -3,10 +3,10 @@ splitIndex.maxPercentChange::
|
||||
percent of entries the split index can contain compared to the
|
||||
total number of entries in both the split index and the shared
|
||||
index before a new shared index is written.
|
||||
The value should be between 0 and 100. If the value is 0 then
|
||||
a new shared index is always written, if it is 100 a new
|
||||
The value should be between 0 and 100. If the value is 0, then
|
||||
a new shared index is always written; if it is 100, a new
|
||||
shared index is never written.
|
||||
By default the value is 20, so a new shared index is written
|
||||
By default, the value is 20, so a new shared index is written
|
||||
if the number of entries in the split index would be greater
|
||||
than 20 percent of the total number of entries.
|
||||
See linkgit:git-update-index[1].
|
||||
|
||||
@ -1,14 +1,14 @@
|
||||
stash.showIncludeUntracked::
|
||||
If this is set to true, the `git stash show` command will show
|
||||
the untracked files of a stash entry. Defaults to false. See
|
||||
description of 'show' command in linkgit:git-stash[1].
|
||||
the description of the 'show' command in linkgit:git-stash[1].
|
||||
|
||||
stash.showPatch::
|
||||
If this is set to true, the `git stash show` command without an
|
||||
option will show the stash entry in patch form. Defaults to false.
|
||||
See description of 'show' command in linkgit:git-stash[1].
|
||||
See the description of the 'show' command in linkgit:git-stash[1].
|
||||
|
||||
stash.showStat::
|
||||
If this is set to true, the `git stash show` command without an
|
||||
option will show diffstat of the stash entry. Defaults to true.
|
||||
See description of 'show' command in linkgit:git-stash[1].
|
||||
option will show a diffstat of the stash entry. Defaults to true.
|
||||
See the description of the 'show' command in linkgit:git-stash[1].
|
||||
|
||||
@ -47,7 +47,7 @@ status.showUntrackedFiles::
|
||||
contain only untracked files, are shown with the directory name
|
||||
only. Showing untracked files means that Git needs to lstat() all
|
||||
the files in the whole repository, which might be slow on some
|
||||
systems. So, this variable controls how the commands displays
|
||||
systems. So, this variable controls how the commands display
|
||||
the untracked files. Possible values are:
|
||||
+
|
||||
--
|
||||
@ -62,7 +62,7 @@ of linkgit:git-status[1] and linkgit:git-commit[1].
|
||||
|
||||
status.submoduleSummary::
|
||||
Defaults to false.
|
||||
If this is set to a non zero number or true (identical to -1 or an
|
||||
If this is set to a non-zero number or true (identical to -1 or an
|
||||
unlimited number), the submodule summary will be enabled and a
|
||||
summary of commits for modified submodules will be shown (see
|
||||
--summary-limit option of linkgit:git-submodule[1]). Please note
|
||||
|
||||
@ -2,7 +2,7 @@ submodule.<name>.url::
|
||||
The URL for a submodule. This variable is copied from the .gitmodules
|
||||
file to the git config via 'git submodule init'. The user can change
|
||||
the configured URL before obtaining the submodule via 'git submodule
|
||||
update'. If neither submodule.<name>.active or submodule.active are
|
||||
update'. If neither submodule.<name>.active nor submodule.active are
|
||||
set, the presence of this variable is used as a fallback to indicate
|
||||
whether the submodule is of interest to git commands.
|
||||
See linkgit:git-submodule[1] and linkgit:gitmodules[5] for details.
|
||||
@ -35,7 +35,7 @@ submodule.<name>.ignore::
|
||||
a submodule as modified. When set to "all", it will never be considered
|
||||
modified (but it will nonetheless show up in the output of status and
|
||||
commit when it has been staged), "dirty" will ignore all changes
|
||||
to the submodules work tree and
|
||||
to the submodule's work tree and
|
||||
takes only differences between the HEAD of the submodule and the commit
|
||||
recorded in the superproject into account. "untracked" will additionally
|
||||
let submodules with modified tracked files in their work tree show up.
|
||||
|
||||
@ -66,6 +66,6 @@ trace2.destinationDebug::
|
||||
|
||||
trace2.maxFiles::
|
||||
Integer. When writing trace files to a target directory, do not
|
||||
write additional traces if we would exceed this many files. Instead,
|
||||
write additional traces if doing so would exceed this many files. Instead,
|
||||
write a sentinel file that will block further tracing to this
|
||||
directory. Defaults to 0, which disables this check.
|
||||
|
||||
@ -7,7 +7,7 @@ transfer.credentialsInUrl::
|
||||
and any other direct use of the configured URL.
|
||||
+
|
||||
Note that this is currently limited to detecting credentials in
|
||||
`remote.<name>.url` configuration, it won't detect credentials in
|
||||
`remote.<name>.url` configuration; it won't detect credentials in
|
||||
`remote.<name>.pushurl` configuration.
|
||||
+
|
||||
You might want to enable this to prevent inadvertent credentials
|
||||
@ -26,7 +26,7 @@ exposure, e.g. because:
|
||||
documented in procfs(5) allows for configuring this behavior.
|
||||
+
|
||||
If such concerns don't apply to you then you probably don't need to be
|
||||
concerned about credentials exposure due to storing that sensitive
|
||||
concerned about credentials exposure due to storing sensitive
|
||||
data in git's configuration files. If you do want to use this, set
|
||||
`transfer.credentialsInUrl` to one of these values:
|
||||
+
|
||||
|
||||
@ -5,14 +5,14 @@ author.email::
|
||||
committer.name::
|
||||
committer.email::
|
||||
The `user.name` and `user.email` variables determine what ends
|
||||
up in the `author` and `committer` field of commit
|
||||
up in the `author` and `committer` fields of commit
|
||||
objects.
|
||||
If you need the `author` or `committer` to be different, the
|
||||
`author.name`, `author.email`, `committer.name` or
|
||||
`author.name`, `author.email`, `committer.name`, or
|
||||
`committer.email` variables can be set.
|
||||
Also, all of these can be overridden by the `GIT_AUTHOR_NAME`,
|
||||
All of these can be overridden by the `GIT_AUTHOR_NAME`,
|
||||
`GIT_AUTHOR_EMAIL`, `GIT_COMMITTER_NAME`,
|
||||
`GIT_COMMITTER_EMAIL` and `EMAIL` environment variables.
|
||||
`GIT_COMMITTER_EMAIL`, and `EMAIL` environment variables.
|
||||
+
|
||||
Note that the `name` forms of these variables conventionally refer to
|
||||
some form of a personal name. See linkgit:git-commit[1] and the
|
||||
@ -40,7 +40,7 @@ user.signingKey::
|
||||
your private ssh key or the public key when ssh-agent is used.
|
||||
Alternatively it can contain a public key prefixed with `key::`
|
||||
directly (e.g.: "key::ssh-rsa XXXXXX identifier"). The private key
|
||||
needs to be available via ssh-agent. If not set git will call
|
||||
needs to be available via ssh-agent. If not set Git will call
|
||||
gpg.ssh.defaultKeyCommand (e.g.: "ssh-add -L") and try to use the
|
||||
first key available. For backward compatibility, a raw key which
|
||||
begins with "ssh-", such as "ssh-rsa XXXXXX identifier", is treated
|
||||
|
||||
@ -19,14 +19,14 @@ with those suffixes. E.g. if "-pre" appears before "-rc" in the
|
||||
configuration, then all "1.0-preX" tags will be listed before any
|
||||
"1.0-rcX" tags. The placement of the main release tag relative to tags
|
||||
with various suffixes can be determined by specifying the empty suffix
|
||||
among those other suffixes. E.g. if the suffixes "-rc", "", "-ck" and
|
||||
among those other suffixes. E.g. if the suffixes "-rc", "", "-ck", and
|
||||
"-bfs" appear in the configuration in this order, then all "v4.8-rcX" tags
|
||||
are listed first, followed by "v4.8", then "v4.8-ckX" and finally
|
||||
"v4.8-bfsX".
|
||||
+
|
||||
If more than one suffixes match the same tagname, then that tagname will
|
||||
If more than one suffix matches the same tagname, then that tagname will
|
||||
be sorted according to the suffix which starts at the earliest position in
|
||||
the tagname. If more than one different matching suffixes start at
|
||||
the tagname. If more than one different matching suffix starts at
|
||||
that earliest position, then that tagname will be sorted according to the
|
||||
longest of those suffixes.
|
||||
The sorting order between different suffixes is undefined if they are
|
||||
|
||||
@ -17,7 +17,7 @@ You can customize the creation of patch text via the
|
||||
What the -p option produces is slightly different from the traditional
|
||||
diff format:
|
||||
|
||||
1. It is preceded with a "git diff" header that looks like this:
|
||||
1. It is preceded by a "git diff" header that looks like this:
|
||||
|
||||
diff --git a/file1 b/file2
|
||||
+
|
||||
@ -25,9 +25,9 @@ The `a/` and `b/` filenames are the same unless rename/copy is
|
||||
involved. Especially, even for a creation or a deletion,
|
||||
`/dev/null` is _not_ used in place of the `a/` or `b/` filenames.
|
||||
+
|
||||
When rename/copy is involved, `file1` and `file2` show the
|
||||
When a rename/copy is involved, `file1` and `file2` show the
|
||||
name of the source file of the rename/copy and the name of
|
||||
the file that rename/copy produces, respectively.
|
||||
the file that the rename/copy produces, respectively.
|
||||
|
||||
2. It is followed by one or more extended header lines:
|
||||
|
||||
@ -77,7 +77,7 @@ separate lines indicate the old and the new mode.
|
||||
|
||||
5. Hunk headers mention the name of the function to which the hunk
|
||||
applies. See "Defining a custom hunk-header" in
|
||||
linkgit:gitattributes[5] for details of how to tailor to this to
|
||||
linkgit:gitattributes[5] for details of how to tailor this to
|
||||
specific languages.
|
||||
|
||||
|
||||
@ -89,7 +89,7 @@ produce a 'combined diff' when showing a merge. This is the default
|
||||
format when showing merges with linkgit:git-diff[1] or
|
||||
linkgit:git-show[1]. Note also that you can give suitable
|
||||
`--diff-merges` option to any of these commands to force generation of
|
||||
diffs in specific format.
|
||||
diffs in a specific format.
|
||||
|
||||
A "combined diff" format looks like this:
|
||||
|
||||
@ -123,7 +123,7 @@ index fabadb8,cc95eb0..4866510
|
||||
for_each_ref(get_name);
|
||||
------------
|
||||
|
||||
1. It is preceded with a "git diff" header, that looks like
|
||||
1. It is preceded by a "git diff" header, that looks like
|
||||
this (when the `-c` option is used):
|
||||
|
||||
diff --combined file
|
||||
@ -142,22 +142,22 @@ or like this (when the `--cc` option is used):
|
||||
+
|
||||
The `mode <mode>,<mode>..<mode>` line appears only if at least one of
|
||||
the <mode> is different from the rest. Extended headers with
|
||||
information about detected contents movement (renames and
|
||||
copying detection) are designed to work with diff of two
|
||||
information about detected content movement (renames and
|
||||
copying detection) are designed to work with the diff of two
|
||||
<tree-ish> and are not used by combined diff format.
|
||||
|
||||
3. It is followed by two-line from-file/to-file header
|
||||
3. It is followed by a two-line from-file/to-file header:
|
||||
|
||||
--- a/file
|
||||
+++ b/file
|
||||
+
|
||||
Similar to two-line header for traditional 'unified' diff
|
||||
Similar to the two-line header for the traditional 'unified' diff
|
||||
format, `/dev/null` is used to signal created or deleted
|
||||
files.
|
||||
+
|
||||
However, if the --combined-all-paths option is provided, instead of a
|
||||
two-line from-file/to-file you get a N+1 line from-file/to-file header,
|
||||
where N is the number of parents in the merge commit
|
||||
two-line from-file/to-file, you get an N+1 line from-file/to-file header,
|
||||
where N is the number of parents in the merge commit:
|
||||
|
||||
--- a/file
|
||||
--- a/file
|
||||
@ -197,7 +197,7 @@ added, from the point of view of that parent).
|
||||
In the above example output, the function signature was changed
|
||||
from both files (hence two `-` removals from both file1 and
|
||||
file2, plus `++` to mean one line that was added does not appear
|
||||
in either file1 or file2). Also eight other lines are the same
|
||||
in either file1 or file2). Also, eight other lines are the same
|
||||
from file1 but do not appear in file2 (hence prefixed with `+`).
|
||||
|
||||
When shown by `git diff-tree -c`, it compares the parents of a
|
||||
|
||||
@ -746,7 +746,7 @@ matches "`fooasdfbar`" and "`foo/bar/baz/asdf`" but not "`foobarx`".
|
||||
--rotate-to=<file>::
|
||||
Discard the files before the named <file> from the output
|
||||
(i.e. 'skip to'), or move them to the end of the output
|
||||
(i.e. 'rotate to'). These were invented primarily for use
|
||||
(i.e. 'rotate to'). These options were invented primarily for the use
|
||||
of the `git difftool` command, and may not be very useful
|
||||
otherwise.
|
||||
|
||||
|
||||
@ -43,7 +43,7 @@ the current repository has the same history as the source repository.
|
||||
--update-shallow::
|
||||
By default when fetching from a shallow repository,
|
||||
`git fetch` refuses refs that require updating
|
||||
.git/shallow. This option updates .git/shallow and accept such
|
||||
.git/shallow. This option updates .git/shallow and accepts such
|
||||
refs.
|
||||
|
||||
--negotiation-tip=<commit|glob>::
|
||||
@ -96,7 +96,7 @@ endif::git-pull[]
|
||||
|
||||
-f::
|
||||
--force::
|
||||
When 'git fetch' is used with `<src>:<dst>` refspec it may
|
||||
When 'git fetch' is used with `<src>:<dst>` refspec, it may
|
||||
refuse to update the local branch as discussed
|
||||
ifdef::git-pull[]
|
||||
in the `<refspec>` part of the linkgit:git-fetch[1]
|
||||
|
||||
@ -132,7 +132,7 @@
|
||||
(ERROR) Missing space before date in an author/committer line.
|
||||
|
||||
`missingSpaceBeforeEmail`::
|
||||
(ERROR) Missing space before the email in author/committer line.
|
||||
(ERROR) Missing space before the email in an author/committer line.
|
||||
|
||||
`missingTag`::
|
||||
(ERROR) Unexpected end after `type` line in a tag object.
|
||||
@ -174,7 +174,7 @@
|
||||
(FATAL) Missing end-of-line in the object header.
|
||||
|
||||
`zeroPaddedDate`::
|
||||
(ERROR) Found a zero padded date in an author/commiter line.
|
||||
(ERROR) Found a zero padded date in an author/committer line.
|
||||
|
||||
`zeroPaddedFilemode`::
|
||||
(WARN) Found a zero padded filemode in a tree.
|
||||
|
||||
@ -22,8 +22,8 @@ SYNOPSIS
|
||||
|
||||
DESCRIPTION
|
||||
-----------
|
||||
Splits mail messages in a mailbox into commit log message,
|
||||
authorship information and patches, and applies them to the
|
||||
Splits mail messages in a mailbox into commit log messages,
|
||||
authorship information, and patches, and applies them to the
|
||||
current branch. You could think of it as a reverse operation
|
||||
of linkgit:git-format-patch[1] run on a branch with a straight
|
||||
history without merges.
|
||||
@ -69,7 +69,7 @@ OPTIONS
|
||||
--empty=(stop|drop|keep)::
|
||||
By default, or when the option is set to 'stop', the command
|
||||
errors out on an input e-mail message lacking a patch
|
||||
and stops into the middle of the current am session. When this
|
||||
and stops in the middle of the current am session. When this
|
||||
option is set to 'drop', skip such an e-mail message instead.
|
||||
When this option is set to 'keep', create an empty commit,
|
||||
recording the contents of the e-mail message as its log.
|
||||
@ -94,7 +94,7 @@ OPTIONS
|
||||
Pass `-u` flag to 'git mailinfo' (see linkgit:git-mailinfo[1]).
|
||||
The proposed commit log message taken from the e-mail
|
||||
is re-coded into UTF-8 encoding (configuration variable
|
||||
`i18n.commitEncoding` can be used to specify project's
|
||||
`i18n.commitEncoding` can be used to specify the project's
|
||||
preferred encoding if it is not UTF-8).
|
||||
+
|
||||
This was optional in prior versions of git, but now it is the
|
||||
@ -134,7 +134,7 @@ include::rerere-options.txt[]
|
||||
automatically. This option allows the user to bypass the automatic
|
||||
detection and specify the patch format that the patch(es) should be
|
||||
interpreted as. Valid formats are mbox, mboxrd,
|
||||
stgit, stgit-series and hg.
|
||||
stgit, stgit-series, and hg.
|
||||
|
||||
-i::
|
||||
--interactive::
|
||||
@ -192,7 +192,7 @@ include::rerere-options.txt[]
|
||||
|
||||
--abort::
|
||||
Restore the original branch and abort the patching operation.
|
||||
Revert contents of files involved in the am operation to their
|
||||
Revert the contents of files involved in the am operation to their
|
||||
pre-am state.
|
||||
|
||||
--quit::
|
||||
|
||||
@ -23,8 +23,8 @@ DESCRIPTION
|
||||
Reads the supplied diff output (i.e. "a patch") and applies it to files.
|
||||
When running from a subdirectory in a repository, patched paths
|
||||
outside the directory are ignored.
|
||||
With the `--index` option the patch is also applied to the index, and
|
||||
with the `--cached` option the patch is only applied to the index.
|
||||
With the `--index` option, the patch is also applied to the index, and
|
||||
with the `--cached` option, the patch is only applied to the index.
|
||||
Without these options, the command applies the patch only to files,
|
||||
and does not require them to be in a Git repository.
|
||||
|
||||
@ -52,7 +52,7 @@ OPTIONS
|
||||
--summary::
|
||||
Instead of applying the patch, output a condensed
|
||||
summary of information obtained from git diff extended
|
||||
headers, such as creations, renames and mode changes.
|
||||
headers, such as creations, renames, and mode changes.
|
||||
Turns off "apply".
|
||||
|
||||
--check::
|
||||
@ -140,7 +140,7 @@ linkgit:git-config[1]).
|
||||
applying a diff generated with `--unified=0`. To bypass these
|
||||
checks use `--unidiff-zero`.
|
||||
+
|
||||
Note, for the reasons stated above usage of context-free patches is
|
||||
Note, for the reasons stated above, the usage of context-free patches is
|
||||
discouraged.
|
||||
|
||||
--apply::
|
||||
@ -159,9 +159,9 @@ discouraged.
|
||||
|
||||
--allow-binary-replacement::
|
||||
--binary::
|
||||
Historically we did not allow binary patch applied
|
||||
Historically we did not allow binary patch application
|
||||
without an explicit permission from the user, and this
|
||||
flag was the way to do so. Currently we always allow binary
|
||||
flag was the way to do so. Currently, we always allow binary
|
||||
patch application, so this is a no-op.
|
||||
|
||||
--exclude=<path-pattern>::
|
||||
@ -257,7 +257,7 @@ the `--unsafe-paths` option to override this safety check. This option
|
||||
has no effect when `--index` or `--cached` is in use.
|
||||
|
||||
--allow-empty::
|
||||
Don't return error for patches containing no diff. This includes
|
||||
Don't return an error for patches containing no diff. This includes
|
||||
empty patches and patches with commit text only.
|
||||
|
||||
CONFIGURATION
|
||||
|
||||
@ -21,14 +21,14 @@ structure for the named tree, and writes it out to the standard
|
||||
output. If <prefix> is specified it is
|
||||
prepended to the filenames in the archive.
|
||||
|
||||
'git archive' behaves differently when given a tree ID versus when
|
||||
given a commit ID or tag ID. In the first case the current time is
|
||||
used as the modification time of each file in the archive. In the latter
|
||||
case the commit time as recorded in the referenced commit object is
|
||||
used instead. Additionally the commit ID is stored in a global
|
||||
extended pax header if the tar format is used; it can be extracted
|
||||
using 'git get-tar-commit-id'. In ZIP files it is stored as a file
|
||||
comment.
|
||||
'git archive' behaves differently when given a tree ID as opposed to a
|
||||
commit ID or tag ID. When a tree ID is provided, the current time is
|
||||
used as the modification time of each file in the archive. On the
|
||||
other hand, when a commit ID or tag ID is provided, the commit time as
|
||||
recorded in the referenced commit object is used instead.
|
||||
Additionally the commit ID is stored in a global extended pax header
|
||||
if the tar format is used; it can be extracted using 'git
|
||||
get-tar-commit-id'. In ZIP files it is stored as a file comment.
|
||||
|
||||
OPTIONS
|
||||
-------
|
||||
|
||||
@ -77,7 +77,7 @@ include::blame-options.txt[]
|
||||
|
||||
-e::
|
||||
--show-email::
|
||||
Show the author email instead of author name (Default: off).
|
||||
Show the author email instead of the author name (Default: off).
|
||||
This can also be controlled via the `blame.showEmail` config
|
||||
option.
|
||||
|
||||
@ -100,7 +100,7 @@ When neither `--porcelain` nor `--incremental` option is specified,
|
||||
`git blame` will output annotation for each line with:
|
||||
|
||||
- abbreviated object name for the commit the line came from;
|
||||
- author ident (by default author name and date, unless `-s` or `-e`
|
||||
- author ident (by default the author name and date, unless `-s` or `-e`
|
||||
is specified); and
|
||||
- line number
|
||||
|
||||
@ -128,7 +128,7 @@ at least once for each commit:
|
||||
- the filename in the commit that the line is attributed to.
|
||||
- the first line of the commit log message ("summary").
|
||||
|
||||
The contents of the actual line is output after the above
|
||||
The contents of the actual line are output after the above
|
||||
header, prefixed by a TAB. This is to allow adding more
|
||||
header elements later.
|
||||
|
||||
@ -170,7 +170,7 @@ which limits the annotation to the body of the `hello` subroutine.
|
||||
|
||||
When you are not interested in changes older than version
|
||||
v2.6.18, or changes older than 3 weeks, you can use revision
|
||||
range specifiers similar to 'git rev-list':
|
||||
range specifiers similar to 'git rev-list':
|
||||
|
||||
git blame v2.6.18.. -- foo
|
||||
git blame --since=3.weeks -- foo
|
||||
|
||||
@ -13,10 +13,11 @@ SYNOPSIS
|
||||
|
||||
DESCRIPTION
|
||||
-----------
|
||||
Captures information about the user's machine, Git client, and repository state,
|
||||
as well as a form requesting information about the behavior the user observed,
|
||||
into a single text file which the user can then share, for example to the Git
|
||||
mailing list, in order to report an observed bug.
|
||||
Collects information about the user's machine, Git client, and repository
|
||||
state, in addition to a form requesting information about the behavior the
|
||||
user observed, and stores it in a single text file which the user can then
|
||||
share, for example to the Git mailing list, in order to report an observed
|
||||
bug.
|
||||
|
||||
The following information is requested from the user:
|
||||
|
||||
|
||||
@ -29,7 +29,7 @@ OPTIONS
|
||||
|
||||
--stdin::
|
||||
Read pathnames from the standard input, one per line,
|
||||
instead of from the command-line.
|
||||
instead of from the command line.
|
||||
|
||||
-z::
|
||||
The output format is modified to be machine-parsable.
|
||||
@ -38,7 +38,7 @@ OPTIONS
|
||||
|
||||
--source=<tree-ish>::
|
||||
Check attributes against the specified tree-ish. It is common to
|
||||
specify the source tree by naming a commit, branch or tag associated
|
||||
specify the source tree by naming a commit, branch, or tag associated
|
||||
with it.
|
||||
|
||||
\--::
|
||||
@ -60,7 +60,7 @@ unless `-z` is in effect, in which case NUL is used as delimiter:
|
||||
|
||||
|
||||
<path> is the path of a file being queried, <attribute> is an attribute
|
||||
being queried and <info> can be either:
|
||||
being queried, and <info> can be either:
|
||||
|
||||
'unspecified';; when the attribute is not defined for the path.
|
||||
'unset';; when the attribute is defined as false.
|
||||
|
||||
@ -50,7 +50,7 @@ linkgit:gitignore[5].
|
||||
with a NUL character instead of a linefeed character.
|
||||
|
||||
-n, --non-matching::
|
||||
Show given paths which don't match any pattern. This only
|
||||
Show given paths which don't match any pattern. This only
|
||||
makes sense when `--verbose` is enabled, otherwise it would
|
||||
not be possible to distinguish between paths which match a
|
||||
pattern and those which don't.
|
||||
|
||||
@ -48,7 +48,7 @@ Git imposes the following rules on how references are named:
|
||||
|
||||
. They cannot begin or end with a slash `/` or contain multiple
|
||||
consecutive slashes (see the `--normalize` option below for an
|
||||
exception to this rule)
|
||||
exception to this rule).
|
||||
|
||||
. They cannot end with a dot `.`.
|
||||
|
||||
@ -85,7 +85,7 @@ The rule `git check-ref-format --branch $name` implements
|
||||
may be stricter than what `git check-ref-format refs/heads/$name`
|
||||
says (e.g. a dash may appear at the beginning of a ref component,
|
||||
but it is explicitly forbidden at the beginning of a branch name).
|
||||
When run with `--branch` option in a repository, the input is first
|
||||
When run with the `--branch` option in a repository, the input is first
|
||||
expanded for the ``previous checkout syntax''
|
||||
`@{-n}`. For example, `@{-1}` is a way to refer the last thing that
|
||||
was checked out using "git switch" or "git checkout" operation.
|
||||
|
||||
@ -18,7 +18,7 @@ SYNOPSIS
|
||||
|
||||
DESCRIPTION
|
||||
-----------
|
||||
Will copy all files listed from the index to the working directory
|
||||
Copies all listed files from the index to the working directory
|
||||
(not overwriting existing files).
|
||||
|
||||
OPTIONS
|
||||
@ -53,11 +53,11 @@ OPTIONS
|
||||
|
||||
--stage=<number>|all::
|
||||
Instead of checking out unmerged entries, copy out the
|
||||
files from named stage. <number> must be between 1 and 3.
|
||||
files from the named stage. <number> must be between 1 and 3.
|
||||
Note: --stage=all automatically implies --temp.
|
||||
|
||||
--temp::
|
||||
Instead of copying the files to the working directory
|
||||
Instead of copying the files to the working directory,
|
||||
write the content to temporary files. The temporary name
|
||||
associations will be written to stdout.
|
||||
|
||||
@ -66,8 +66,8 @@ OPTIONS
|
||||
set.
|
||||
|
||||
--stdin::
|
||||
Instead of taking list of paths from the command line,
|
||||
read list of paths from the standard input. Paths are
|
||||
Instead of taking a list of paths from the command line,
|
||||
read the list of paths from the standard input. Paths are
|
||||
separated by LF (i.e. one path per line) by default.
|
||||
|
||||
-z::
|
||||
|
||||
@ -43,7 +43,7 @@ $ git checkout -b <branch> --track <remote>/<branch>
|
||||
You could omit `<branch>`, in which case the command degenerates to
|
||||
"check out the current branch", which is a glorified no-op with
|
||||
rather expensive side-effects to show only the tracking information,
|
||||
if exists, for the current branch.
|
||||
if it exists, for the current branch.
|
||||
|
||||
'git checkout' -b|-B <new-branch> [<start-point>]::
|
||||
|
||||
|
||||
@ -103,7 +103,7 @@ filter by pattern::
|
||||
This shows the files and directories to be deleted and issues an
|
||||
"Input ignore patterns>>" prompt. You can input space-separated
|
||||
patterns to exclude files and directories from deletion.
|
||||
E.g. "*.c *.h" will excludes files end with ".c" and ".h" from
|
||||
E.g. "*.c *.h" will exclude files ending with ".c" and ".h" from
|
||||
deletion. When you are satisfied with the filtered result, press
|
||||
ENTER (empty) back to the main menu.
|
||||
|
||||
|
||||
@ -12,7 +12,7 @@ SYNOPSIS
|
||||
|
||||
DESCRIPTION
|
||||
-----------
|
||||
This counts the number of unpacked object files and disk space consumed by
|
||||
Counts the number of unpacked object files and disk space consumed by
|
||||
them, to help you decide when it is a good time to repack.
|
||||
|
||||
|
||||
@ -20,7 +20,7 @@ OPTIONS
|
||||
-------
|
||||
-v::
|
||||
--verbose::
|
||||
Report in more detail:
|
||||
Provide more detailed reports:
|
||||
+
|
||||
count: the number of loose objects
|
||||
+
|
||||
@ -33,7 +33,7 @@ size-pack: disk space consumed by the packs, in KiB (unless -H is specified)
|
||||
prune-packable: the number of loose objects that are also present in
|
||||
the packs. These objects could be pruned using `git prune-packed`.
|
||||
+
|
||||
garbage: the number of files in object database that are neither valid loose
|
||||
garbage: the number of files in the object database that are neither valid loose
|
||||
objects nor valid packs
|
||||
+
|
||||
size-garbage: disk space consumed by garbage files, in KiB (unless -H is
|
||||
|
||||
@ -16,7 +16,7 @@ DESCRIPTION
|
||||
|
||||
This command caches credentials for use by future Git programs.
|
||||
The stored credentials are kept in memory of the cache-daemon
|
||||
process (instead of written to a file) and are forgotten after a
|
||||
process (instead of being written to a file) and are forgotten after a
|
||||
configurable timeout. Credentials are forgotten sooner if the
|
||||
cache-daemon dies, for example if the system restarts. The cache
|
||||
is accessible over a Unix domain socket, restricted to the current
|
||||
|
||||
@ -33,7 +33,7 @@ OPTIONS
|
||||
|
||||
Use `<path>` to lookup and store credentials. The file will have its
|
||||
filesystem permissions set to prevent other users on the system
|
||||
from reading it, but will not be encrypted or otherwise
|
||||
from reading it, but it will not be encrypted or otherwise
|
||||
protected. If not specified, credentials will be searched for from
|
||||
`~/.git-credentials` and `$XDG_CONFIG_HOME/git/credentials`, and
|
||||
credentials will be written to `~/.git-credentials` if it exists, or
|
||||
|
||||
@ -94,7 +94,7 @@ unlocked) before it returned `password=secr3t`.
|
||||
that `git credential` will ask for a new password in its next
|
||||
invocation. In either case, `git credential` should be fed with
|
||||
the credential description obtained from step (2) (which also
|
||||
contain the ones provided in step (1)).
|
||||
contains the fields provided in step (1)).
|
||||
|
||||
[[IOFMT]]
|
||||
INPUT/OUTPUT FORMAT
|
||||
|
||||
@ -138,7 +138,7 @@ otherwise `stderr`.
|
||||
--user-path::
|
||||
--user-path=<path>::
|
||||
Allow {tilde}user notation to be used in requests. When
|
||||
specified with no parameter, requests to
|
||||
specified with no parameter, a request to
|
||||
git://host/{tilde}alice/foo is taken as a request to access
|
||||
'foo' repository in the home directory of user `alice`.
|
||||
If `--user-path=path` is specified, the same request is
|
||||
|
||||
@ -26,7 +26,7 @@ include::diff-options.txt[]
|
||||
-2 --ours::
|
||||
-3 --theirs::
|
||||
-0::
|
||||
Diff against the "base" version, "our branch" or "their
|
||||
Diff against the "base" version, "our branch", or "their
|
||||
branch" respectively. With these options, diffs for
|
||||
merged entries are not shown.
|
||||
+
|
||||
@ -37,12 +37,12 @@ omit diff output for unmerged entries and just show "Unmerged".
|
||||
-c::
|
||||
--cc::
|
||||
This compares stage 2 (our branch), stage 3 (their
|
||||
branch) and the working tree file and outputs a combined
|
||||
branch), and the working tree file and outputs a combined
|
||||
diff, similar to the way 'diff-tree' shows a merge
|
||||
commit with these flags.
|
||||
|
||||
-q::
|
||||
Remain silent even on nonexistent files
|
||||
Remain silent even for nonexistent files
|
||||
|
||||
|
||||
include::diff-format.txt[]
|
||||
|
||||
@ -13,10 +13,10 @@ SYNOPSIS
|
||||
|
||||
DESCRIPTION
|
||||
-----------
|
||||
Compares the content and mode of the blobs found in a tree object
|
||||
Compare the content and mode of the blobs found in a tree object
|
||||
with the corresponding tracked files in the working tree, or with the
|
||||
corresponding paths in the index. When <path> arguments are present,
|
||||
compares only paths matching those patterns. Otherwise all tracked
|
||||
compare only paths matching those patterns. Otherwise all tracked
|
||||
files are compared.
|
||||
|
||||
OPTIONS
|
||||
|
||||
@ -15,7 +15,7 @@ SYNOPSIS
|
||||
|
||||
DESCRIPTION
|
||||
-----------
|
||||
Compares the content and mode of the blobs found via two tree objects.
|
||||
Compare the content and mode of blobs found via two tree objects.
|
||||
|
||||
If there is only one <tree-ish> given, the commit is compared with its parents
|
||||
(see --stdin below).
|
||||
@ -34,10 +34,10 @@ include::diff-options.txt[]
|
||||
matching one of the provided pathspecs.
|
||||
|
||||
-r::
|
||||
recurse into sub-trees
|
||||
Recurse into sub-trees.
|
||||
|
||||
-t::
|
||||
show tree entry itself as well as subtrees. Implies -r.
|
||||
Show tree entry itself as well as subtrees. Implies -r.
|
||||
|
||||
--root::
|
||||
When `--root` is specified the initial commit will be shown as a big
|
||||
@ -78,7 +78,7 @@ commits (but not trees).
|
||||
By default, 'git diff-tree --stdin' shows differences,
|
||||
either in machine-readable form (without `-p`) or in patch
|
||||
form (with `-p`). This output can be suppressed. It is
|
||||
only useful with `-v` flag.
|
||||
only useful with the `-v` flag.
|
||||
|
||||
-v::
|
||||
This flag causes 'git diff-tree --stdin' to also show
|
||||
@ -104,10 +104,10 @@ include::pretty-options.txt[]
|
||||
This flag changes the way a merge commit patch is displayed,
|
||||
in a similar way to the `-c` option. It implies the `-c`
|
||||
and `-p` options and further compresses the patch output
|
||||
by omitting uninteresting hunks whose the contents in the parents
|
||||
by omitting uninteresting hunks whose contents in the parents
|
||||
have only two variants and the merge result picks one of them
|
||||
without modification. When all hunks are uninteresting, the commit
|
||||
itself and the commit log message is not shown, just like in any other
|
||||
itself and the commit log message are not shown, just like in any other
|
||||
"empty diff" case.
|
||||
|
||||
--combined-all-paths::
|
||||
|
||||
@ -36,7 +36,7 @@ OPTIONS
|
||||
|
||||
--rotate-to=<file>::
|
||||
Start showing the diff for the given path,
|
||||
the paths before it will move to end and output.
|
||||
the paths before it will move to the end and output.
|
||||
|
||||
--skip-to=<file>::
|
||||
Start showing the diff for the given path, skipping all
|
||||
@ -78,7 +78,7 @@ with custom merge tool commands and has the same value as `$MERGED`.
|
||||
Print a list of diff tools that may be used with `--tool`.
|
||||
|
||||
--[no-]symlinks::
|
||||
'git difftool''s default behavior is create symlinks to the
|
||||
'git difftool''s default behavior is to create symlinks to the
|
||||
working tree when run in `--dir-diff` mode and the right-hand
|
||||
side of the comparison yields the same content as the file in
|
||||
the working tree.
|
||||
|
||||
@ -622,7 +622,7 @@ in octal. Git only supports the following modes:
|
||||
* `100755` or `755`: A normal, but executable, file.
|
||||
* `120000`: A symlink, the content of the file will be the link target.
|
||||
* `160000`: A gitlink, SHA-1 of the object refers to a commit in
|
||||
another repository. Git links can only be specified by SHA or through
|
||||
another repository. Git links can only be specified either by SHA or through
|
||||
a commit mark. They are used to implement submodules.
|
||||
* `040000`: A subdirectory. Subdirectories can only be specified by
|
||||
SHA or through a tree mark set with `--import-marks`.
|
||||
@ -1353,7 +1353,7 @@ the marks back to the source repository, it is easy to verify the
|
||||
accuracy and completeness of the import by comparing each Git
|
||||
commit to the corresponding source revision.
|
||||
|
||||
Coming from a system such as Perforce or Subversion this should be
|
||||
Coming from a system such as Perforce or Subversion, this should be
|
||||
quite simple, as the fast-import mark can also be the Perforce changeset
|
||||
number or the Subversion revision number.
|
||||
|
||||
|
||||
@ -69,7 +69,7 @@ be in a separate packet, and the list must end with a flush packet.
|
||||
|
||||
--upload-pack=<git-upload-pack>::
|
||||
Use this to specify the path to 'git-upload-pack' on the
|
||||
remote side, if is not found on your $PATH.
|
||||
remote side, if it is not found on your $PATH.
|
||||
Installations of sshd ignores the user's environment
|
||||
setup scripts for login shells (e.g. .bash_profile) and
|
||||
your privately installed git may not be found on the system
|
||||
|
||||
@ -55,7 +55,7 @@ A "message" generated by the command consists of three parts:
|
||||
* The "patch", which is the "diff -p --stat" output (see
|
||||
linkgit:git-diff[1]) between the commit and its parent.
|
||||
|
||||
The log message and the patch is separated by a line with a
|
||||
The log message and the patch are separated by a line with a
|
||||
three-dash line.
|
||||
|
||||
There are two ways to specify which commits to operate on.
|
||||
|
||||
@ -24,7 +24,7 @@ OPTIONS
|
||||
An object to treat as the head of an unreachability trace.
|
||||
+
|
||||
If no objects are given, 'git fsck' defaults to using the
|
||||
index file, all SHA-1 references in `refs` namespace, and all reflogs
|
||||
index file, all SHA-1 references in the `refs` namespace, and all reflogs
|
||||
(unless --no-reflogs is given) as heads.
|
||||
|
||||
--unreachable::
|
||||
@ -64,7 +64,7 @@ index file, all SHA-1 references in `refs` namespace, and all reflogs
|
||||
--connectivity-only::
|
||||
Check only the connectivity of reachable objects, making sure
|
||||
that any objects referenced by a reachable tag, commit, or tree
|
||||
is present. This speeds up the operation by avoiding reading
|
||||
are present. This speeds up the operation by avoiding reading
|
||||
blobs entirely (though it does still check that referenced blobs
|
||||
exist). This will detect corruption in commits and trees, but
|
||||
not do any semantic checks (e.g., for format errors). Corruption
|
||||
@ -79,7 +79,7 @@ care about this output and want to speed it up further.
|
||||
recorded with g+w bit set, which was created by older
|
||||
versions of Git. Existing repositories, including the
|
||||
Linux kernel, Git itself, and sparse repository have old
|
||||
objects that triggers this check, but it is recommended
|
||||
objects that trigger this check, but it is recommended
|
||||
to check new projects with this flag.
|
||||
|
||||
--verbose::
|
||||
|
||||
@ -70,10 +70,10 @@ the change (as happening against the super repo). However, the client
|
||||
will properly ignore these extra events, so performance may be affected
|
||||
but it will not cause an incorrect result.
|
||||
|
||||
By default, the fsmonitor daemon refuses to work against network-mounted
|
||||
By default, the fsmonitor daemon refuses to work with network-mounted
|
||||
repositories; this may be overridden by setting `fsmonitor.allowRemote` to
|
||||
`true`. Note, however, that the fsmonitor daemon is not guaranteed to work
|
||||
correctly with all network-mounted repositories and such use is considered
|
||||
correctly with all network-mounted repositories, so such use is considered
|
||||
experimental.
|
||||
|
||||
On Mac OS, the inter-process communication (IPC) between various Git
|
||||
@ -83,10 +83,10 @@ but not on network-mounted filesystems, NTFS, or FAT32. Other filesystems
|
||||
may or may not have the needed support; the fsmonitor daemon is not guaranteed
|
||||
to work with these filesystems and such use is considered experimental.
|
||||
|
||||
By default, the socket is created in the `.git` directory, however, if the
|
||||
`.git` directory is on a network-mounted filesystem, it will be instead be
|
||||
By default, the socket is created in the `.git` directory. However, if the
|
||||
`.git` directory is on a network-mounted filesystem, it will instead be
|
||||
created at `$HOME/.git-fsmonitor-*` unless `$HOME` itself is on a
|
||||
network-mounted filesystem in which case you must set the configuration
|
||||
network-mounted filesystem, in which case you must set the configuration
|
||||
variable `fsmonitor.socketDir` to the path of a directory on a Mac OS native
|
||||
filesystem in which to create the socket file.
|
||||
|
||||
|
||||
@ -20,7 +20,7 @@ and extract the commit ID stored in it. It reads only the first
|
||||
1024 bytes of input, thus its runtime is not influenced by the size
|
||||
of the tar archive very much.
|
||||
|
||||
If no commit ID is found, 'git get-tar-commit-id' quietly exists with a
|
||||
If no commit ID is found, 'git get-tar-commit-id' quietly exits with a
|
||||
return code of 1. This can happen if the archive had not been created
|
||||
using 'git archive' or if the first parameter of 'git archive' had been
|
||||
a tree ID instead of a commit ID or tag.
|
||||
|
||||
@ -337,7 +337,7 @@ The `--threads` option (and the grep.threads configuration) will be ignored when
|
||||
|
||||
When grepping the object store (with `--cached` or giving tree objects), running
|
||||
with multiple threads might perform slower than single threaded if `--textconv`
|
||||
is given and there're too many text conversions. So if you experience low
|
||||
is given and there are too many text conversions. So if you experience low
|
||||
performance in this case, it might be desirable to use `--threads=1`.
|
||||
|
||||
CONFIGURATION
|
||||
|
||||
@ -39,10 +39,10 @@ OPTIONS
|
||||
of from the command-line.
|
||||
|
||||
--path::
|
||||
Hash object as it were located at the given path. The location of
|
||||
file does not directly influence on the hash value, but path is
|
||||
used to determine what Git filters should be applied to the object
|
||||
before it can be placed to the object database, and, as result of
|
||||
Hash object as if it were located at the given path. The location of
|
||||
the file does not directly influence the hash value, but the path is
|
||||
used to determine which Git filters should be applied to the object
|
||||
before it can be placed in the object database. As a result of
|
||||
applying filters, the actual blob put into the object database may
|
||||
differ from the given file. This option is mainly useful for hashing
|
||||
temporary files located outside of the working directory or files
|
||||
|
||||
@ -42,13 +42,13 @@ former is internally converted into the latter.
|
||||
|
||||
To display the linkgit:git[1] man page, use `git help git`.
|
||||
|
||||
This page can be displayed with 'git help help' or `git help --help`
|
||||
This page can be displayed with 'git help help' or `git help --help`.
|
||||
|
||||
OPTIONS
|
||||
-------
|
||||
-a::
|
||||
--all::
|
||||
Prints all the available commands on the standard output.
|
||||
Print all the available commands on the standard output.
|
||||
|
||||
--no-external-commands::
|
||||
When used with `--all`, exclude the listing of external "git-*"
|
||||
@ -59,7 +59,7 @@ OPTIONS
|
||||
aliases.
|
||||
|
||||
--verbose::
|
||||
When used with `--all` print description for all recognized
|
||||
When used with `--all`, print description for all recognized
|
||||
commands. This is the default.
|
||||
|
||||
-c::
|
||||
@ -69,10 +69,10 @@ OPTIONS
|
||||
|
||||
-g::
|
||||
--guides::
|
||||
Prints a list of the Git concept guides on the standard output.
|
||||
Print a list of the Git concept guides on the standard output.
|
||||
|
||||
--user-interfaces::
|
||||
Prints a list of the repository, command and file interfaces
|
||||
Print a list of the repository, command and file interfaces
|
||||
documentation on the standard output.
|
||||
+
|
||||
In-repository file interfaces such as `.git/info/exclude` are
|
||||
@ -85,7 +85,7 @@ pseudo-configuration such as the file-based `.git/hooks/*` interface
|
||||
described in linkgit:githooks[5].
|
||||
|
||||
--developer-interfaces::
|
||||
Print list of file formats, protocols and other developer
|
||||
Print a list of file formats, protocols and other developer
|
||||
interfaces documentation on the standard output.
|
||||
|
||||
-i::
|
||||
@ -109,7 +109,7 @@ other display programs (see below).
|
||||
format. A web browser will be used for that purpose.
|
||||
+
|
||||
The web browser can be specified using the configuration variable
|
||||
`help.browser`, or `web.browser` if the former is not set. If none of
|
||||
`help.browser`, or `web.browser` if the former is not set. If neither of
|
||||
these config variables is set, the 'git web{litdd}browse' helper script
|
||||
(called by 'git help') will pick a suitable default. See
|
||||
linkgit:git-web{litdd}browse[1] for more information about this.
|
||||
@ -129,8 +129,8 @@ line option:
|
||||
* "info" corresponds to '-i|--info',
|
||||
* "web" or "html" correspond to '-w|--web'.
|
||||
|
||||
help.browser, web.browser and browser.<tool>.path
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
help.browser, web.browser, and browser.<tool>.path
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
The `help.browser`, `web.browser` and `browser.<tool>.path` will also
|
||||
be checked if the 'web' format is chosen (either by command-line
|
||||
|
||||
@ -13,7 +13,7 @@ SYNOPSIS
|
||||
DESCRIPTION
|
||||
-----------
|
||||
|
||||
A command interface to running git hooks (see linkgit:githooks[5]),
|
||||
A command interface for running git hooks (see linkgit:githooks[5]),
|
||||
for use by other scripted git commands.
|
||||
|
||||
SUBCOMMANDS
|
||||
@ -32,7 +32,7 @@ OPTIONS
|
||||
-------
|
||||
|
||||
--to-stdin::
|
||||
For "run"; Specify a file which will be streamed into the
|
||||
For "run"; specify a file which will be streamed into the
|
||||
hook's stdin. The hook will receive the entire file from
|
||||
beginning to EOF.
|
||||
|
||||
|
||||
@ -23,7 +23,7 @@ discussion of `GIT_PROTOCOL` in the ENVIRONMENT section below.
|
||||
It verifies that the directory has the magic file
|
||||
"git-daemon-export-ok", and it will refuse to export any Git directory
|
||||
that hasn't explicitly been marked for export this way (unless the
|
||||
`GIT_HTTP_EXPORT_ALL` environmental variable is set).
|
||||
`GIT_HTTP_EXPORT_ALL` environment variable is set).
|
||||
|
||||
By default, only the `upload-pack` service is enabled, which serves
|
||||
'git fetch-pack' and 'git ls-remote' clients, which are invoked from
|
||||
@ -42,12 +42,12 @@ http.getanyfile::
|
||||
any file within the repository, including objects that are
|
||||
no longer reachable from a branch but are still present.
|
||||
It is enabled by default, but a repository can disable it
|
||||
by setting this configuration item to `false`.
|
||||
by setting this configuration value to `false`.
|
||||
|
||||
http.uploadpack::
|
||||
This serves 'git fetch-pack' and 'git ls-remote' clients.
|
||||
It is enabled by default, but a repository can disable it
|
||||
by setting this configuration item to `false`.
|
||||
by setting this configuration value to `false`.
|
||||
|
||||
http.receivepack::
|
||||
This serves 'git send-pack' clients, allowing push. It is
|
||||
@ -265,12 +265,12 @@ by the invoking web server, including:
|
||||
* QUERY_STRING
|
||||
* REQUEST_METHOD
|
||||
|
||||
The `GIT_HTTP_EXPORT_ALL` environmental variable may be passed to
|
||||
The `GIT_HTTP_EXPORT_ALL` environment variable may be passed to
|
||||
'git-http-backend' to bypass the check for the "git-daemon-export-ok"
|
||||
file in each repository before allowing export of that repository.
|
||||
|
||||
The `GIT_HTTP_MAX_REQUEST_BUFFER` environment variable (or the
|
||||
`http.maxRequestBuffer` config variable) may be set to change the
|
||||
`http.maxRequestBuffer` config option) may be set to change the
|
||||
largest ref negotiation request that git will handle during a fetch; any
|
||||
fetch requiring a larger buffer will not succeed. This value should not
|
||||
normally need to be changed, but may be helpful if you are fetching from
|
||||
|
||||
@ -31,7 +31,7 @@ commit-id::
|
||||
Report what is downloaded.
|
||||
|
||||
-w <filename>::
|
||||
Writes the commit-id into the filename under $GIT_DIR/refs/<filename> on
|
||||
Writes the commit-id into the specified filename under $GIT_DIR/refs/<filename> on
|
||||
the local end after the transfer is complete.
|
||||
|
||||
--stdin::
|
||||
|
||||
@ -13,12 +13,12 @@ SYNOPSIS
|
||||
|
||||
DESCRIPTION
|
||||
-----------
|
||||
Sends missing objects to remote repository, and updates the
|
||||
Sends missing objects to the remote repository, and updates the
|
||||
remote branch.
|
||||
|
||||
*NOTE*: This command is temporarily disabled if your libcurl
|
||||
is older than 7.16, as the combination has been reported
|
||||
not to work and sometimes corrupts repository.
|
||||
not to work and sometimes corrupts the repository.
|
||||
|
||||
OPTIONS
|
||||
-------
|
||||
@ -44,7 +44,7 @@ OPTIONS
|
||||
-d::
|
||||
-D::
|
||||
Remove <ref> from remote repository. The specified branch
|
||||
cannot be the remote HEAD. If -d is specified the following
|
||||
cannot be the remote HEAD. If -d is specified, the following
|
||||
other conditions must also be met:
|
||||
|
||||
- Remote HEAD must resolve to an object that exists locally
|
||||
@ -83,8 +83,8 @@ and where it is pushed is determined by using the destination side.
|
||||
Without `--force`, the <src> ref is stored at the remote only if
|
||||
<dst> does not exist, or <dst> is a proper subset (i.e. an
|
||||
ancestor) of <src>. This check, known as "fast-forward check",
|
||||
is performed in order to avoid accidentally overwriting the
|
||||
remote ref and lose other peoples' commits from there.
|
||||
is performed to avoid accidentally overwriting the
|
||||
remote ref and losing other peoples' commits from there.
|
||||
|
||||
With `--force`, the fast-forward check is disabled for all refs.
|
||||
|
||||
|
||||
@ -16,10 +16,10 @@ SYNOPSIS
|
||||
|
||||
DESCRIPTION
|
||||
-----------
|
||||
Reads a packed archive (.pack) from the specified file, and
|
||||
builds a pack index file (.idx) for it. Optionally writes a
|
||||
Reads a packed archive (.pack) from the specified file,
|
||||
builds a pack index file (.idx) for it, and optionally writes a
|
||||
reverse-index (.rev) for the specified pack. The packed
|
||||
archive together with the pack index can then be placed in
|
||||
archive, together with the pack index, can then be placed in
|
||||
the objects/pack/ directory of a Git repository.
|
||||
|
||||
|
||||
@ -68,8 +68,8 @@ OPTIONS
|
||||
updated to use objects contained in the pack.
|
||||
|
||||
--keep=<msg>::
|
||||
Like --keep create a .keep file before moving the index into
|
||||
its final destination, but rather than creating an empty file
|
||||
Like --keep, create a .keep file before moving the index into
|
||||
its final destination. However, instead of creating an empty file
|
||||
place '<msg>' followed by an LF into the .keep file. The '<msg>'
|
||||
message can later be searched for within all .keep files to
|
||||
locate any which have outlived their usefulness.
|
||||
|
||||
@ -29,7 +29,7 @@ to use instead of `./.git` for the base of the repository.
|
||||
|
||||
If the object storage directory is specified via the
|
||||
`$GIT_OBJECT_DIRECTORY` environment variable then the sha1 directories
|
||||
are created underneath - otherwise the default `$GIT_DIR/objects`
|
||||
are created underneath; otherwise, the default `$GIT_DIR/objects`
|
||||
directory is used.
|
||||
|
||||
Running 'git init' in an existing repository is safe. It will not
|
||||
@ -66,10 +66,10 @@ DIRECTORY" section below.)
|
||||
|
||||
Instead of initializing the repository as a directory to either `$GIT_DIR` or
|
||||
`./.git/`, create a text file there containing the path to the actual
|
||||
repository. This file acts as filesystem-agnostic Git symbolic link to the
|
||||
repository. This file acts as a filesystem-agnostic Git symbolic link to the
|
||||
repository.
|
||||
+
|
||||
If this is reinitialization, the repository will be moved to the specified path.
|
||||
If this is a reinitialization, the repository will be moved to the specified path.
|
||||
|
||||
-b <branch-name>::
|
||||
--initial-branch=<branch-name>::
|
||||
@ -99,7 +99,7 @@ specified.
|
||||
|
||||
'group' (or 'true')::
|
||||
|
||||
Make the repository group-writable, (and g+sx, since the git group may be not
|
||||
Make the repository group-writable, (and g+sx, since the git group may not be
|
||||
the primary group of all users). This is used to loosen the permissions of an
|
||||
otherwise safe umask(2) value. Note that the umask still applies to the other
|
||||
permission bits (e.g. if umask is '0022', using 'group' will not remove read
|
||||
@ -115,7 +115,7 @@ Same as 'group', but make the repository readable by all users.
|
||||
'<perm>' is a 3-digit octal number prefixed with `0` and each file
|
||||
will have mode '<perm>'. '<perm>' will override users' umask(2)
|
||||
value (and not only loosen permissions as 'group' and 'all'
|
||||
does). '0640' will create a repository which is group-readable, but
|
||||
do). '0640' will create a repository which is group-readable, but
|
||||
not group-writable or accessible to others. '0660' will create a repo
|
||||
that is readable and writable to the current user and group, but
|
||||
inaccessible to others (directories and executable files get their
|
||||
|
||||
@ -25,12 +25,12 @@ SYNOPSIS
|
||||
|
||||
DESCRIPTION
|
||||
-----------
|
||||
This merges the file listing in the index with the actual working
|
||||
This command merges the file listing in the index with the actual working
|
||||
directory list, and shows different combinations of the two.
|
||||
|
||||
One or more of the options below may be used to determine the files
|
||||
Several flags can be used to determine which files are
|
||||
shown, and each file may be printed multiple times if there are
|
||||
multiple entries in the index or multiple statuses are applicable for
|
||||
multiple entries in the index or if multiple statuses are applicable for
|
||||
the relevant file selection options.
|
||||
|
||||
OPTIONS
|
||||
@ -62,7 +62,7 @@ OPTIONS
|
||||
matching an exclude pattern. When showing "other" files
|
||||
(i.e. when used with '-o'), show only those matched by an
|
||||
exclude pattern. Standard ignore rules are not automatically
|
||||
activated, therefore at least one of the `--exclude*` options
|
||||
activated; therefore, at least one of the `--exclude*` options
|
||||
is required.
|
||||
|
||||
-s::
|
||||
@ -141,7 +141,7 @@ OPTIONS
|
||||
Show status tags together with filenames. Note that for
|
||||
scripting purposes, linkgit:git-status[1] `--porcelain` and
|
||||
linkgit:git-diff-files[1] `--name-status` are almost always
|
||||
superior alternatives, and users should look at
|
||||
superior alternatives; users should look at
|
||||
linkgit:git-status[1] `--short` or linkgit:git-diff[1]
|
||||
`--name-status` for more user-friendly alternatives.
|
||||
+
|
||||
|
||||
@ -34,7 +34,7 @@ OPTIONS
|
||||
|
||||
-b::
|
||||
If any file doesn't begin with a From line, assume it is a
|
||||
single mail message instead of signaling error.
|
||||
single mail message instead of signaling an error.
|
||||
|
||||
-d<prec>::
|
||||
Instead of the default 4 digits with leading zeros,
|
||||
|
||||
@ -102,9 +102,9 @@ prefetch::
|
||||
requested refs within `refs/prefetch/`. Also, tags are not updated.
|
||||
+
|
||||
This is done to avoid disrupting the remote-tracking branches. The end users
|
||||
expect these refs to stay unmoved unless they initiate a fetch. With prefetch
|
||||
task, however, the objects necessary to complete a later real fetch would
|
||||
already be obtained, so the real fetch would go faster. In the ideal case,
|
||||
expect these refs to stay unmoved unless they initiate a fetch. However,
|
||||
with the prefetch task, the objects necessary to complete a later real fetch
|
||||
would already be obtained, making the real fetch faster. In the ideal case,
|
||||
it will just become an update to a bunch of remote-tracking branches without
|
||||
any object transfer.
|
||||
|
||||
|
||||
@ -18,7 +18,7 @@ SYNOPSIS
|
||||
DESCRIPTION
|
||||
-----------
|
||||
|
||||
'git merge-base' finds best common ancestor(s) between two commits to use
|
||||
'git merge-base' finds the best common ancestor(s) between two commits to use
|
||||
in a three-way merge. One common ancestor is 'better' than another common
|
||||
ancestor if the latter is an ancestor of the former. A common ancestor
|
||||
that does not have any better common ancestor is a 'best common
|
||||
@ -28,7 +28,7 @@ merge base for a pair of commits.
|
||||
OPERATION MODES
|
||||
---------------
|
||||
|
||||
As the most common special case, specifying only two commits on the
|
||||
In the most common special case, specifying only two commits on the
|
||||
command line means computing the merge base between the given two commits.
|
||||
|
||||
More generally, among the two commits to compute the merge base from,
|
||||
@ -64,7 +64,7 @@ from linkgit:git-show-branch[1] when used with the `--merge-base` option.
|
||||
the two commits, but also takes into account the reflog of
|
||||
<ref> to see if the history leading to <commit> forked from
|
||||
an earlier incarnation of the branch <ref> (see discussion
|
||||
on this mode below).
|
||||
of this mode below).
|
||||
|
||||
OPTIONS
|
||||
-------
|
||||
@ -88,7 +88,7 @@ For example, with this topology:
|
||||
|
||||
the merge base between 'A' and 'B' is '1'.
|
||||
|
||||
Given three commits 'A', 'B' and 'C', `git merge-base A B C` will compute the
|
||||
Given three commits 'A', 'B', and 'C', `git merge-base A B C` will compute the
|
||||
merge base between 'A' and a hypothetical commit 'M', which is a merge
|
||||
between 'B' and 'C'. For example, with this topology:
|
||||
|
||||
@ -130,7 +130,7 @@ When the history involves criss-cross merges, there can be more than one
|
||||
---2---o---o---B
|
||||
....
|
||||
|
||||
both '1' and '2' are merge-bases of A and B. Neither one is better than
|
||||
both '1' and '2' are merge bases of A and B. Neither one is better than
|
||||
the other (both are 'best' merge bases). When the `--all` option is not given,
|
||||
it is unspecified which best one is output.
|
||||
|
||||
@ -204,7 +204,7 @@ will find B0, and
|
||||
|
||||
$ git rebase --onto origin/master $fork_point topic
|
||||
|
||||
will replay D0, D1 and D on top of B to create a new history of this
|
||||
will replay D0, D1, and D on top of B to create a new history of this
|
||||
shape:
|
||||
|
||||
....
|
||||
|
||||
@ -19,12 +19,12 @@ DESCRIPTION
|
||||
This command has a modern `--write-tree` mode and a deprecated
|
||||
`--trivial-merge` mode. With the exception of the
|
||||
<<DEPMERGE,DEPRECATED DESCRIPTION>> section at the end, the rest of
|
||||
this documentation describes modern `--write-tree` mode.
|
||||
this documentation describes the modern `--write-tree` mode.
|
||||
|
||||
Performs a merge, but does not make any new commits and does not read
|
||||
from or write to either the working tree or index.
|
||||
|
||||
The performed merge will use the same feature as the "real"
|
||||
The performed merge will use the same features as the "real"
|
||||
linkgit:git-merge[1], including:
|
||||
|
||||
* three way content merges of individual files
|
||||
@ -253,7 +253,7 @@ Do NOT attempt to guess or make the user guess the conflict types from
|
||||
the <<CFI,Conflicted file info>> list. The information there is
|
||||
insufficient to do so. For example: Rename/rename(1to2) conflicts (both
|
||||
sides renamed the same file differently) will result in three different
|
||||
file having higher order stages (but each only has one higher order
|
||||
files having higher order stages (but each only has one higher order
|
||||
stage), with no way (short of the <<IM,Informational messages>> section)
|
||||
to determine which three files are related. File/directory conflicts
|
||||
also result in a file with exactly one higher order stage.
|
||||
@ -263,7 +263,7 @@ a file with exactly one higher order stage. In all cases, the
|
||||
<<IM,Informational messages>> section has the necessary info, though it
|
||||
is not designed to be machine parseable.
|
||||
|
||||
Do NOT assume that each paths from <<CFI,Conflicted file info>>, and
|
||||
Do NOT assume that each path from <<CFI,Conflicted file info>>, and
|
||||
the logical conflicts in the <<IM,Informational messages>> have a
|
||||
one-to-one mapping, nor that there is a one-to-many mapping, nor a
|
||||
many-to-one mapping. Many-to-many mappings exist, meaning that each
|
||||
|
||||
@ -336,7 +336,7 @@ After seeing a conflict, you can do two things:
|
||||
You can work through the conflict with a number of tools:
|
||||
|
||||
* Use a mergetool. `git mergetool` to launch a graphical
|
||||
mergetool which will work you through the merge.
|
||||
mergetool which will work through the merge with you.
|
||||
|
||||
* Look at the diffs. `git diff` will show a three-way diff,
|
||||
highlighting changes from both the `HEAD` and `MERGE_HEAD`
|
||||
|
||||
@ -28,22 +28,22 @@ to define the operation mode for the functions listed below.
|
||||
FUNCTIONS
|
||||
---------
|
||||
get_merge_tool::
|
||||
returns a merge tool. the return code is 1 if we returned a guessed
|
||||
Returns a merge tool. The return code is 1 if we returned a guessed
|
||||
merge tool, else 0. '$GIT_MERGETOOL_GUI' may be set to 'true' to
|
||||
search for the appropriate guitool.
|
||||
|
||||
get_merge_tool_cmd::
|
||||
returns the custom command for a merge tool.
|
||||
Returns the custom command for a merge tool.
|
||||
|
||||
get_merge_tool_path::
|
||||
returns the custom path for a merge tool.
|
||||
Returns the custom path for a merge tool.
|
||||
|
||||
initialize_merge_tool::
|
||||
bring merge tool specific functions into scope so they can be used or
|
||||
Brings merge tool specific functions into scope so they can be used or
|
||||
overridden.
|
||||
|
||||
run_merge_tool::
|
||||
launches a merge tool given the tool name and a true/false
|
||||
Launches a merge tool given the tool name and a true/false
|
||||
flag to indicate whether a merge base is present.
|
||||
'$MERGED', '$LOCAL', '$REMOTE', and '$BASE' must be defined
|
||||
for use by the merge tool.
|
||||
|
||||
@ -17,7 +17,7 @@ Use `git mergetool` to run one of several merge utilities to resolve
|
||||
merge conflicts. It is typically run after 'git merge'.
|
||||
|
||||
If one or more <file> parameters are given, the merge tool program will
|
||||
be run to resolve differences on each file (skipping those without
|
||||
be run to resolve differences in each file (skipping those without
|
||||
conflicts). Specifying a directory will include all unresolved files in
|
||||
that path. If no <file> names are specified, 'git mergetool' will run
|
||||
the merge tool program on every file with merge conflicts.
|
||||
@ -49,7 +49,7 @@ variable `mergetool.<tool>.cmd`.
|
||||
+
|
||||
When 'git mergetool' is invoked with this tool (either through the
|
||||
`-t` or `--tool` option or the `merge.tool` configuration
|
||||
variable) the configured command line will be invoked with `$BASE`
|
||||
variable), the configured command line will be invoked with `$BASE`
|
||||
set to the name of a temporary file containing the common base for
|
||||
the merge, if available; `$LOCAL` set to the name of a temporary
|
||||
file containing the contents of the file on the current branch;
|
||||
@ -81,7 +81,7 @@ success of the resolution after the custom tool has exited.
|
||||
|
||||
-g::
|
||||
--gui::
|
||||
When 'git-mergetool' is invoked with the `-g` or `--gui` option
|
||||
When 'git-mergetool' is invoked with the `-g` or `--gui` option,
|
||||
the default merge tool will be read from the configured
|
||||
`merge.guitool` variable instead of `merge.tool`. If
|
||||
`merge.guitool` is not set, we will fallback to the tool
|
||||
@ -115,7 +115,7 @@ These are safe to remove once a file has been merged and its
|
||||
`git mergetool` session has completed.
|
||||
|
||||
Setting the `mergetool.keepBackup` configuration variable to `false`
|
||||
causes `git mergetool` to automatically remove the backup as files
|
||||
causes `git mergetool` to automatically remove the backup files as files
|
||||
are successfully merged.
|
||||
|
||||
BACKEND SPECIFIC HINTS
|
||||
|
||||
@ -14,7 +14,7 @@ SYNOPSIS
|
||||
DESCRIPTION
|
||||
-----------
|
||||
|
||||
Reads a tag contents on standard input and creates a tag object. The
|
||||
Reads a tag's contents on standard input and creates a tag object. The
|
||||
output is the new tag's <object> identifier.
|
||||
|
||||
This command is mostly equivalent to linkgit:git-hash-object[1]
|
||||
@ -27,7 +27,7 @@ write a tag found in `my-tag`:
|
||||
The difference is that mktag will die before writing the tag if the
|
||||
tag doesn't pass a linkgit:git-fsck[1] check.
|
||||
|
||||
The "fsck" check done mktag is stricter than what linkgit:git-fsck[1]
|
||||
The "fsck" check done by mktag is stricter than what linkgit:git-fsck[1]
|
||||
would run by default in that all `fsck.<msg-id>` messages are promoted
|
||||
from warnings to errors (so e.g. a missing "tagger" line is an error).
|
||||
|
||||
@ -56,7 +56,7 @@ has a very simple fixed format: four lines of
|
||||
tagger <tagger>
|
||||
|
||||
followed by some 'optional' free-form message (some tags created
|
||||
by older Git may not have `tagger` line). The message, when it
|
||||
by older Git may not have a `tagger` line). The message, when it
|
||||
exists, is separated by a blank line from the header. The
|
||||
message part may contain a signature that Git itself doesn't
|
||||
care about, but that can be verified with gpg.
|
||||
|
||||
@ -25,13 +25,13 @@ OPTIONS
|
||||
|
||||
--missing::
|
||||
Allow missing objects. The default behaviour (without this option)
|
||||
is to verify that each tree entry's sha1 identifies an existing
|
||||
is to verify that each tree entry's hash identifies an existing
|
||||
object. This option has no effect on the treatment of gitlink entries
|
||||
(aka "submodules") which are always allowed to be missing.
|
||||
|
||||
--batch::
|
||||
Allow building of more than one tree object before exiting. Each
|
||||
tree is separated by a single blank line. The final new-line is
|
||||
tree is separated by a single blank line. The final newline is
|
||||
optional. Note - if the `-z` option is used, lines are terminated
|
||||
with NUL.
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user