Skip to content

Commit

Permalink
documentation: wording improvements
Browse files Browse the repository at this point in the history
Diff best viewed with --color-diff.

Signed-off-by: Elijah Newren <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
newren authored and gitster committed Oct 9, 2023
1 parent 3a06386 commit cf6cac2
Show file tree
Hide file tree
Showing 74 changed files with 134 additions and 133 deletions.
4 changes: 2 additions & 2 deletions Documentation/CodingGuidelines
Original file line number Diff line number Diff line change
@@ -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."
Expand Down
2 changes: 1 addition & 1 deletion Documentation/ToolsForGit.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions Documentation/config.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 a
`includeIf.<condition>.path` variable to the name of the file to be
included.

Expand Down
2 changes: 1 addition & 1 deletion Documentation/config/apply.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ 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].

Expand Down
2 changes: 1 addition & 1 deletion Documentation/config/branch.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions Documentation/config/clone.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 to clone 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
Expand Down
2 changes: 1 addition & 1 deletion Documentation/config/credential.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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).
4 changes: 2 additions & 2 deletions Documentation/config/fetch.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 detail.

fetch.negotiationAlgorithm::
Control how information about the commits in the local repository
Expand Down
4 changes: 2 additions & 2 deletions Documentation/config/fsck.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ 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.
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
Expand Down Expand Up @@ -59,7 +59,7 @@ 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.
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
Expand Down
2 changes: 1 addition & 1 deletion Documentation/config/fsmonitor--daemon.txt
Original file line number Diff line number Diff line change
@@ -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`.

Expand Down
2 changes: 1 addition & 1 deletion Documentation/config/gc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

Expand Down
2 changes: 1 addition & 1 deletion Documentation/config/gpg.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion Documentation/config/http.txt
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ http.noEPSV::

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
Expand Down
2 changes: 1 addition & 1 deletion Documentation/config/imap.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Documentation/config/mergetool.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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].
Expand Down
6 changes: 3 additions & 3 deletions Documentation/config/pack.txt
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ 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,
Expand All @@ -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).
+
Expand Down
2 changes: 1 addition & 1 deletion Documentation/config/receive.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ receive.certNonceSeed::
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
Expand Down
4 changes: 2 additions & 2 deletions Documentation/config/safe.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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::
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Documentation/config/submodule.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion Documentation/config/trace2.txt
Original file line number Diff line number Diff line change
Expand 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.
4 changes: 2 additions & 2 deletions Documentation/config/transfer.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
+
Expand Down
2 changes: 1 addition & 1 deletion Documentation/config/user.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ committer.email::
If you need the `author` or `committer` to be different, the
`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.
+
Expand Down
4 changes: 2 additions & 2 deletions Documentation/diff-generate-patch.txt
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ information about detected contents movement (renames and
copying detection) are designed to work with 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
Expand All @@ -157,7 +157,7 @@ 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
where N is the number of parents in the merge commit:

--- a/file
--- a/file
Expand Down
2 changes: 1 addition & 1 deletion Documentation/diff-options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,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.

Expand Down
2 changes: 1 addition & 1 deletion Documentation/git-apply.txt
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ 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
patch application, so this is a no-op.
Expand Down
16 changes: 8 additions & 8 deletions Documentation/git-archive.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
-------
Expand Down
9 changes: 5 additions & 4 deletions Documentation/git-bugreport.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down
2 changes: 1 addition & 1 deletion Documentation/git-checkout-index.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions Documentation/git-count-objects.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ 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.


OPTIONS
-------
-v::
--verbose::
Report in more detail:
Provide more detailed reports:
+
count: the number of loose objects
+
Expand Down
2 changes: 1 addition & 1 deletion Documentation/git-credential.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions Documentation/git-diff-index.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Documentation/git-diff-tree.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion Documentation/git-fast-import.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down
Loading

0 comments on commit cf6cac2

Please sign in to comment.